11-28-2008 12:06 PM
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.
Solved! Go to Solution.
11-28-2008 11:25 PM
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
11-29-2008 11:25 AM
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.