LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

TIFF File Reader (non IMAQ)

I have 2 different LabVIEW .tif file readers that I acquired years ago.  But some .tif files can't be read by one, some can't be read by the other, and some can't be read by either of them.

Does anyone have a .tif file reader that works all the time?

0 Kudos
Message 1 of 9
(178 Views)

I have a tiff reader built in .net framework.  It loads from file and export to the Clipboard.  Does that works for you?
Not sure if it "works all the time".  Can you post your tiff file?

 

George Zou
0 Kudos
Message 2 of 9
(158 Views)

I need the app to run on a Mac, so .net won't work for me.

The attached file is one that I can't read.

0 Kudos
Message 3 of 9
(146 Views)

This is a 32-bit uncompressed tiff file.  Nothing special.

I don't know Mac.

 

George Zou
0 Kudos
Message 4 of 9
(133 Views)

@zou wrote:

This is a 32-bit uncompressed tiff file.  Nothing special.

I don't know Mac.

 


And yet I can't  find anything that will read it.

0 Kudos
Message 5 of 9
(123 Views)

This one seems to be OK for your particular image.

 

Message 6 of 9
(102 Views)

I'm a bit busy at the moment but will check with your image with a library I build. It's still a project under construction with not just TIFF but also GIF and some beginnings of BMP. Also would be cool to add PNG but that is probably going to be long off since I would like to keep it all entirely G code and the zlib compression commonly used in PNG is not easy to implement in G in a way that is not going to suck performance wise. I'm not currently even considering JPG, that is simply to much math for my taste. 😁

 

 

Rolf Kalbermatter  My Blog
DEMO, Electronic and Mechanical Support department, room 36.LB00.390
Message 7 of 9
(87 Views)

@zou wrote:

This is a 32-bit uncompressed tiff file.

 


 

the pillow library can read this, we then can use the python node to access the image's pixels in labview

labview-python-pillow-tif.png

0 Kudos
Message 8 of 9
(43 Views)

@Andrey_Dmitriev wrote:

This one seems to be OK for your particular image.

 


Gee, that looks familiar.  As I now recall, I took that, "cleaned it up" (making it faster), and that's what I've been using.  But now I've discovered that my "clean up" broke it for TIFF files that have an alpha channel.  So I fixed that; and then I did some more clean up: I replaced the array of IFDs with a map (which speeds things up).

0 Kudos
Message 9 of 9
(20 Views)