Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I read a *.tif file

I have stored an image using the IMAQ WriteFile 2 vi using the TIFF format in LV 8.5.1.
 
The files are readable by matlab.  I would like to be able to open them and manipulate the data programatically in LV...
 
There doesn't seem to be a "read .Tiff" vi like there is a "read .png".  I have to have all the bits uncompressed so I need to be able to store and read them all ... any hints?
 
Thanks
0 Kudos
Message 1 of 3
(3,616 Views)
Hi Hummer1,
maybe this helps.
Mike
0 Kudos
Message 2 of 3
(3,611 Views)

Never mind.

Found in in Vision Utilities

Use the standard file dialog to choose a file.

Use the IMAQ Create to create a new image ... name it something and set the bit pattern...

Use the IMAQ ReadFile to read the file ... use file path and the New Image out terminal of the Create box to wire to the Image input of the ReadFile vi.

 

Then I use the IMAQ windraw to draw the image on a window, and the IMAQ ImageToArray to allow me to access the thing bit by bit.

Looks like it's pretty straight forward ... but nowhere in any of the examples or the documentation does it mention that you have to create the image before you populate it with the file information.  (This is like declaring a variable I guess...but it isn't stated anywhere....and should be).

Thanks for the notes.

0 Kudos
Message 3 of 3
(3,606 Views)