LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Opening tiff & Zeiss lsm files

Hello everyone !

I am working with tiff and lsm files from Zeiss microscope. I wrote a vi to open tiff & lsm files in Labview 2010, without IMAQ or libtiff.

I had to open multi-tiff files and started from this post, with Gavin Burnell Tiff_reader. And as I lurked a lot on these forums, it's only fair I share the result 🙂

 

This version can (or should be able to):

* Read tiff & lsm files, extract the pixel size informations when it's an lsm file.

* Read single or multi-tiff files.

* Read files in chunky or planar configuration (microscope files are often in planar configuration, as it saves space. But the original Tiff_reader could read only chunky files).

* Read 8 & 16 bits greyscale, paletted or RGB files. Palette is not extracted, though (don't need it).

* Data are extracted by channel order and then page order. So, a single 512*512 RGB tiff will give a 3D array of 3*512*512 of U16 with Red at first index, then Green, then Blue. A multi tiff with 2 channels A & B will give A1B1 - A2B2 - etc... So you will have to convert your image in RGB format if you want to show it directly.

 

As I didn't need it, it cannot do:

* Read compressed tiff files.

* Read more than 16 bits files (24 or 32 bits files will be clipped to 16).

* There are no error management. Sorry, I know it's bad.

 

I didn't try:

* To read Big-Endian files, I don't have any. It "should" work, but well...

* To read bilevel (single-bits) images. Same, it "should" work and give an array of 0 & 1.

* To read alpha channels of RGBA files.

* To read really big files. I open the whole file, so big multi-tiff files will be slow to open. However, it's possible to open them partially by just opening some IFDs and not the others.

Open the OpenLSM vi in the llb, it is a bit commented. There are some really basic tools to check the result. Please tell me if you see some bugs or ways to improve the reader.

 

Cheers !

 

Message 1 of 2
(4,091 Views)

Thanks for this VI!

I managed to load my MultiTiff file.

Do you know how to easily and rapidily load a specific image in a huge stack?

Currently, it is really long to load the FIDs of the entire stack.

Bypassing this FID reading should improve at least the speed to load the entire stack.

Best regards.

Sébastein

0 Kudos
Message 2 of 2
(3,069 Views)