Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

Reducing image size

Solved!
Go to solution

A relatively simple question. Using CVS 1456 and a Basler Camera A622F with VBAI 3.0, how can i reduce the size of the whole image while grabbing a frame from the camera via an external trigger? For example, if the actual matrix size from the camera is 1280 x 960 pixels, how can i reduce it to 640 x 480 pixels during frame acquisition while still looking at the same area/image, but ofcourse with a smaller image size (or lesser pixels per square mm)?

 

The reason i am asking this question is that while applying the existing script in VBAI, the loop time does not allow my application to go beyond 20 parts per minute. I need the same script applied on a smaller image so that it takes less time to run, thus increasing the part throughput. I am sure i will lose some details while doing so, but i think this will be an acceptable trade-off for my application. I have tested this (using benchmarking) between large sample images and 40% reduced size of the same images. It takes much more time using the same script on the large images compared to the smaller ones.


Does the camera tool (Format 1 Mode 2 etc.) help in this case? I will also appreciate If you have any other ideas / comments about dealing with this problem.

0 Kudos
Message 1 of 3
(3,256 Views)

I am pretty sure what you want to do is acquire the full resolution image, then use IMAQ Extract to reduce the size of the image.  Using a step factor of 2 for both axis will reduce your image to half its original dimensions.

 

Bruce

Bruce Ammons
Ammons Engineering
Message 2 of 3
(3,250 Views)
Solution
Accepted by topic author Medianix

Thanks for your response bruce. But my version of VBAI 3.0 shows Geometry tool that has a "resample" option. The problem was solved by chosing a smaller resolution in it.

 

Have a great day.

0 Kudos
Message 3 of 3
(3,237 Views)