Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

array of images

hi,
i am using labview to snap images and i am able to do it but i need to save the images continously instead of me saving the image file everytime i run.
is there any way i could do it?

also i need to know whether i can retreive the saved images one by one and do some analysis instead of me giving the path of each file everytime.

please advice

Ramnath
0 Kudos
Message 1 of 5
(4,163 Views)
Hi rajagopal,

If i understood your question correctly,

1. You can use imaq snap and save image vis in sequence in a loop and do it. But the speed will be slow down because of the save image time. Eventhough you can get resonable images if your requirment is not critical.
2. You can store all the images in a directory and use List files, which will give you the array of file names index and build with the base path in a loop.

If you just want for analysis purpose, you cna do it with vision builder which will help in both your requirments.

Is that what you are looking for?

Thanks,
Logic
0 Kudos
Message 2 of 5
(4,159 Views)
hi,

thanks

if i use IMAQ snap in a sequence, will it ask for the filename to save as everytime i run it?

regards

Ramnath
0 Kudos
Message 3 of 5
(4,153 Views)
Hi

Another alternative is to use a grab instead of a snap. There is no initialisation each time an image is taken with a grab, as there is with a snap. If you create an AVI file, after every grab you can then write the frame to the file, one frame at a time. This will give you a much faster record.

A separate program can then be written to read in the images frame by frame, so that you can do the analysis.

Mike
0 Kudos
Message 4 of 5
(4,147 Views)
It isn't really clear what you are trying to do, so I will just present a few options I see.

You can use a date/time stamp to automatically generate filenames so that you don't have to enter a filename every time you save an image. Use the format date/time string vi and use a custom format string. Make sure you avoid using illegal characters for a filename.

One option for saving all the images in the same file is the AVI functions. This is probably the most practical.

Another option is compressing each image into a string using the JPEG to string conversion routines, which can be found in this exchange by searching for "JPEG string". The input is an image and the output is a JPEG compressed string. The string is converted back to an image by using another routine. The strings can be manipulated in a number of ways. I frequently put them in an array and save them as a single file. This gives me a little more control over the images and compression than the AVI routines.

Bruce
Bruce Ammons
Ammons Engineering
0 Kudos
Message 5 of 5
(4,131 Views)