LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Problems saving a stack of images(Tiff) from a GigE camera

Hi everyone,

 

I am having trouble trying to figure out how to save a stack of images from my camera. I either get errors or end up getting prompted to save each image as it is taken. Ideally I would like to be able to select where to save the file once either via a prompt or drop down in the VI and that have the program save the rest of the files after that in sequence. (without a prompt) image acquisition.jpg

0 Kudos
Message 1 of 4
(4,144 Views)

An IMAQdx camera can take a single image ("Snap"), which you can save as a PNG or JPEG, or a video ("Grab"), which you can save as a Video file (such as .AVI).  The advantage of saving a (single) Video session as a (single) Video file is the basic simplicity of it all -- you open a single file, then feed the successive images (from the Grabs) to a IMAQ Write function that writes a frame of the video.

 

If you really want a sequence of multiple single images (such as a "stack" of PNG files), you need to generate a sequence of file names, as each image gets its own file (name).  Note that you can easily open a Video file, read a frame, write an image, and repeat until you've made PNG copies of all of your frames.

 

So for Videos, either a single Video file or multiple PNGs.

 

Bob Schor

0 Kudos
Message 2 of 4
(4,121 Views)

You are trying to use the same filename for each picture. You can generate unique file names using something like the loop iteration or a time-stamp.

 

generate file names.png

0 Kudos
Message 3 of 4
(4,081 Views)

Thank you for your kind replies!  I'm trying to implement some of the things you two have  mentioned.

0 Kudos
Message 4 of 4
(4,065 Views)