LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Reading tiff files under linux

Does anyone know of a way to read a 16 bit tiff image file and convert it to an array under linux.  We have the Vision Module unders Windows but for various reasons it would be nice to read the data on our Linux machine.  I know the Vision Module is not supported under Linux, but reading a tiff file doesn't seem like it should be much of a issue, regardless of the environment, much like you can read a jpg under linux.  Actually I'm suprised is not in the base Labview package. Its not like supporting a driver which I could see being a more difficult issue.   
0 Kudos
Message 1 of 9
(4,062 Views)
I know it's a work around, but if you have the privilages to install and runstuff from the linux CLI using labview, you could run the image through ImageMagick (http://www.imagemagick.org/script/index.php) to convert it to another image format.
0 Kudos
Message 2 of 9
(4,056 Views)
That's a good suggestion, but leaving the labview environment defeats the purpose for our process.  Also, there's a problem with the need for a 16 bit image.  It doesn't seem there are any options for uncompressed 16 bit images under linux.  Is this even possible?
0 Kudos
Message 3 of 9
(4,027 Views)

Hey Jeff,

 

You are correct in saying the the Vision Development Module is not currently supported on Linux. Have you tried to read a 16 bit Tiff file and run into problems? Are you currently running Vision on a Linux machine? If so are you able to open other images types just not these 16 bit Tiff files? Or, are you currently working on a Windows machine looking to switch over to Linux?

Hope this helps.
-Ben

WaterlooLabs
0 Kudos
Message 4 of 9
(4,017 Views)

We have a Windows machine with Vision installed and I read tiffs with no problem.  However, that's the only Windows machine in our lab and it isn't suited for the current job.  As far as I know there is no way to run Vision under Linux.  Our primary development in Labview is under Linux.  In addition we have a new machine that we bought for a specific purpose.  It will have Linux installed and my life would be much easier if I could read the tiffs in Labiew.   The problem is, there is no prebuilt VI under Linux to read tiffs so as of yet I have never read a tiff under Linux.  

 

Jeff

0 Kudos
Message 5 of 9
(4,012 Views)

Jeff,

 

Search for 2D Array to TIFF.  In that thread there is a reference to a TIFF reader written in LV.  It is several years old, and I did not check it.

 

Lynn 

0 Kudos
Message 6 of 9
(4,005 Views)

johnsold wrote:

Jeff,

 

Search for 2D Array to TIFF.  In that thread there is a reference to a TIFF reader written in LV.  It is several years old, and I did not check it.

 

Lynn 


Thanks for the links.  The suggested examples look promising however I cannot open them.  They are for versions 3.1 and 5.1.  Our versions of Labview start with 8 and I currently have 2009 installed.  It's my understanding that you can request to have the VIs brought up to current through NI?  Or does anyone know of another way.  I can put a request in if necessary.  The relevant Vis are:

 

tiff_readable

 

http://dmg-stairs.msm.cam.ac.uk/~gb119/labview/

 

typewriting

 

http://www.info-labview.org/the-archives/vi/lv3.1/

 

Jeff

 

 

0 Kudos
Message 7 of 9
(3,966 Views)

Hey Jeff,

 

Here are the files that I think you were looking for. I simply upconverted them to LabVIEW 2009. As these VI's were written in such an old version of LabVIEW, there is no guarantee that the functionality will quite be the same as originally intended. Hopefully these files help you out though.

 

 

Hope this helps.
-Ben

WaterlooLabs
0 Kudos
Message 8 of 9
(3,947 Views)

Awesome.  Thanks Ben.  I'm taking a look at them now and I'll post back concerning their functionality under Linux.  Thanks for the help.

 

Jeff

0 Kudos
Message 9 of 9
(3,923 Views)