01-07-2011 08:23 AM
Hi everybody,
I'm student and I have to make a LabVIEW project.
The goal is to shoot a stretching machine and get the movement values of a test steel sheet by analyzing images.
I managed to get images continuously, and i managed to create a VI with vision assistant to process images (RGB treshold and circle detection).
Actually my VI acquires images and when I stop it i only see the last image, and i cannot process images.
Could someone show me how to put images in memory (about 400 frames per acquisition) and process them after acquisition?
Thank you
version of Labview : 2009 student.
01-11-2011 12:16 AM
Cheers,
Process images in a loop? In other words, process an image right after you acquire it. Just like for example calculating 1+1 in a loop and processing the result after calculation.
Use shift registers to store the data or put images into a queue and process it in other parallel loop? Basic programming.
Jick
01-11-2011 01:51 AM - edited 01-11-2011 01:52 AM
400 frames? What's the size and the bit depth? If the size is 1000*1000 pix and the bit depth is 8, that makes 400Mb... not much for today's computer 😮
So you can pre-allocate 400 images then, do the image acquisition, each new frame that is acquired is store in one of the 400 pre-allocated images, then when the acquisition is finished you can do whatever you want with your images (process them, save them to disk, create an AVI file, etc.)
Hope this helps.
We have two ears and one mouth so that we can listen twice as much as we speak.
Epictetus
01-11-2011 01:36 PM
Hi !
First, thank you for answering me !
Sorry guys but i was wrong, i found another code to get the same job : I acquires continuously, with no limit and no allocations for images, and of course i process continuously. It works because of the very short time of my process (and 200ms between each image = 5 fps).
@TiTou : my pics are taken with a depth of 32 bits, the sensor is 1600 wide by 1200 high, and i cannot change the bit depth with the dll i got. So i needed 3072 Mo just for 400 images.
I've also created another topic, more precise about what i needed :
Actuyally, I proceeded step by step, and found what was stupid in my project (like recording acquired images).
Thank you !