Thanks for sharing. Good start point for libtiff. But I think error handling like this will be a bit more useful:
thanks your example.
could you please give me a suggestion about --how to change from U8 to U16 ?
did I need to modify the origin code or just modify labview parameter?
thanks your help
I downloaded the libtiff library and implemented your code. Everything gets smooth. However, what confuses me is that I cannot really read or open a tif image because your code only gives out the handle in integer type, but what shall I do with that? I enclosed a tif image of multiple frames. Could you show me how to open and read it?
I modify the libtiff_U8.llb from Nico_MPI. so please download my attatched file and use them.
the attatached file read stack tiff test.vi is can used in U16 that was my main requirement. beside I note some words to explain how to modify parameters that for used in U8/U16/U32. but in U32 I am NOT ensure can used, so I JUST give a way to think. wish if you find the correct way please put them in here.
I provider labview version 2010/8.5 and libtiff.dll
after seeing that there is still some interest in libtiff in the Labview community, I created another collection of VIs that allows for reading and writing single/multipaged TIF files. The VIs support U8, U16, and U32 (handled as SGL) data depths, but no RGB. I implemented two ways of writing a TIF pages:
1. Using the function WriteScanLine, writing a single line to the TIF file
2. Using WriteEncodedStrip, writing a chunk of ~ 8 kB to the file
Two examples are included to show hot to use the VIs.
Apart from this, I improved the general VI structure and wrote some code more adherent to the libtiff specs.
Enjoy and let me know what do you think!