LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Multipage TIF VIs

Hi,

 

I am not sure why you want to keep 8-bits: you are not loosing anything by casting to 16-bit... and if you open the file with e.g. Fiji and stretch it it looks ok.

 

I will try to modify my VIs to correctly handle also 8 and 32 bit inputs. Might take some time, however!

 

Best,

 

Nico 

0 Kudos
Message 11 of 20
(2,368 Views)

...took much less than I expected... 😉

 

Here is a corrected version of TIFF_writeMultipage.vi. Please use this one: I tested and it does indeed work with both 8 and 16 bits images.

 

Enjoy!

 

Nico

 

 

Message 12 of 20
(2,363 Views)

I did a quick test, and yes, it seems to be working. Thank you very much. This helps me a lot.

0 Kudos
Message 13 of 20
(2,359 Views)

Great!

 

have fun and let me know in case you find some other bugs.

 

Nico

0 Kudos
Message 14 of 20
(2,354 Views)

Dear all,

 

I tried to use the function and it saves multiple images into a single multipage Tiff but in my hands, it saves multiple times the same image.

 
0 Kudos
Message 15 of 20
(2,250 Views)

Hello

 

In case it helps, i have implemented (from the U16 only version sadly), a VI that doesn't use IMAQ but directly a 3D array to save image. I have tested it and it saves the different z stacks as you want.

0 Kudos
Message 16 of 20
(1,887 Views)

That real works well !

 

And I can open it from Fiji.

 

But, stupid question : how can I open it back from Labview ?

 

thanks for your help,

 

0 Kudos
Message 17 of 20
(147 Views)

@sebastien.schaub wrote:

That real works well !

 

And I can open it from Fiji.

 

But, stupid question : how can I open it back from Labview ?

 

thanks for your help,

 


Obviously, this can be done either by parsing the data byte by byte in pure LabVIEW code exactly as it was created, or by using any suitable library that supports it — OpenCV, for example.

0 Kudos
Message 18 of 20
(144 Views)

But there is libtiff3 that could most probably do the job ?

 

I didn't find where ti get the libraries for 64bit (and I don't have the skills to compile it)

 

Thanks for your help !

0 Kudos
Message 19 of 20
(107 Views)

@sebastien.schaub wrote:

That real works well !

 

And I can open it from Fiji.

 

But, stupid question : how can I open it back from LabVIEW ?


The attached VI loads TIFF file into clipboard.

You can import it from clipboard into 2D Picture Ctrl or .Net Picture Box.

 

George Zou
0 Kudos
Message 20 of 20
(87 Views)