08-27-2012 01:15 PM
Hi,
I grab single frames from a video camera and write them to a binary file (TIFF stack). The single frames are grabbed in a For-loop.
The problem is, that in the resulting Tiff file, the images are progressively shifted further and further to the right in each image of the stack. The parts that shift out of the range of the image ocurr on the left.
The images did not shift before they enter the Write to Binary File VI. I probed the array by reshaping it into 320x256 array and feeding it to the 'Array to Image' and then have it displayed.
Maybe the 'current position' setting not only shifts to the next image in the TIFF stack but also the position of the image in the frame?
I included a screenshot of the VI.
Dennis
Solved! Go to Solution.
08-28-2012 05:43 PM - edited 08-28-2012 05:43 PM
Hi Dennis,
Rather than create your own TIFF, have you considered using the IMAQ Write File 2 vi? This function will allow you to write the TIFF using the image reference. Check out the labview help (link attached) for more information on the function.
http://zone.ni.com/reference/en-XX/help/370281P-01/imaqvision/imaq_write_file_2/
08-29-2012 08:54 AM
How would I write a stack with this? It doesn't have the option to specify the position at which the new image should be added to the file... ?
08-30-2012 08:44 AM
Finally found it. For the Write to Binary VI, 'Prepend array or string size?' needed to be set to FALSE.
I also tried IMAQ File 2 [TIFF] VI - according to the documentation it does not support image stacks (or 'multipage images').