キャンセル
次の結果を表示 
次の代わりに検索 
もしかして: 

Labview libtiff implementation

writeScanLine writes one row of data at a time to a file previously open for writing using the function TIFFWriteScanLine (see here). WriteStripedPage writes many lines at time (a "strip" of data) using the function TIFFWriteEncodedStrip (see here). The number of lines depends on the image width: the VI "libtiff2_CalcStrip.vi" takes care of calculating it by taking into account the bit per sample (8, 16, or 32) and trying to output strips that are around 8 kB each. Note that 8 kB is somewhat arbitrary, although "suggested" by libtiff. To experiment and change this value, you should change the constant named "Suggested strip size in bits (8 kB)" found in "libtiff2_CalcStrip.vi" from 65535 (default, corresponding to ~ 8 kB) to something else.

I got slightly faster execution times by using writeScanLine, but you should try which one performs better for your specific case, maybe playing around with the strip size. Note that both writeScanLine and writeStripedPage use "high level" functions, i.e. most probably it is possible to get the whole writing routine faster by calling other functions, such as TIFFWriteRawStrip. Maybe I will implement it in the next "release"! 😉

 

hope this helps and enjoy!

 

Nico

メッセージ21/115
7,629件の閲覧回数

I am almost ready to upload several new VIs: now also RGB images will be supported (single or multipage), as well as some basic metadata writing/reading (plus several bug fixes!).

 

I was wondering what people out there might be interested in: special bit per pixel values (e. g. strange 12 or 14 bit images)? More than three colours (RGB+???)? Or what else?! I could try and include some of these features if there is enough interest!

 

let me know,

 

Nico

0 件の賞賛
メッセージ22/115
7,558件の閲覧回数

Hi Nico, 

 

Thanks for your hard work! I'm working on an application which requires saving of 32bit TIFFs and came across your library. スマイリー ハッピー Do you think you can include a function to write in custom tags?

 

Best regards,

Victor

0 件の賞賛
メッセージ23/115
7,531件の閲覧回数

Hi Victor,

 

I'll try to create some VI to write/read custom tags: it would definitely add more flexibility to the whole thing.

 

Thanks for the suggestion!

 

Nico

0 件の賞賛
メッセージ24/115
7,528件の閲覧回数

Hi Nico,

 

Thanks! Do you have any experience with writing tiled TIFF? 

 

Best regards,

Victor

0 件の賞賛
メッセージ25/115
7,507件の閲覧回数

Hi Victor,

 

no, I didn't try to write tiled TIFFs. However, before starting with libtiff I had no idea about how to write TIFF files at all! スマイリー ハッピー

I started with striped- or scanline-oriented files because I needed some VIs to write images from a scanning microscope, therefore these structures are closer to the original data format (sequential acquisition of pixels, line by line).

 

Anyway tiled TIFF are on my "to do" list, as soon as I will be less busy with my work!

 

Nico

 

 

0 件の賞賛
メッセージ26/115
7,509件の閲覧回数

Hi Nico,

 

No problem, I'll work with striped and scanline TIFFs first then. Its great that you have created this library, looking forward to your new edition soon. 🙂 

 

Best regards,

Victor

0 件の賞賛
メッセージ27/115
7,488件の閲覧回数

Hi!

 

as promised, here is the latest version of libtiff for labview!

 

Currently, the library supports writing/reading single or multipaged TIFF files in U8, U16, SGL, or RGB format. The files can be either scanline-oriented (i. e. a single line is written or read at a time) or striped (accessing a stripe made of multiple lines at a time). For RGB images, both separate color planes (i. e. first the plane containing the red values, then the gree and finally the blue) or contig color planes are allowed (i. e. for every pixel the red, green and blue one after the other).

 

What's new:

- RGB support

- I eliminated small error that incorrectly displayed SGL values in the previous version.

- Metadata: the metadata entry is limited to few fields (ImageDescription, Software, Date, Time, and Artist).

- A VI named libtiff3_tif2Images converts TIFF files into an array of images.

 

Still to do:

-Custom tags

-Tile-oriented TIFFs

-(your comment here!)

 

Enjoy!

 

Nico

メッセージ28/115
7,480件の閲覧回数

Could you sombody please upload the libtiff3.llb for Labview 8.5? 

 

THank you very much. 

0 件の賞賛
メッセージ29/115
7,390件の閲覧回数

Hi,

 

sorry for the delay.

 

I compiled a version of libtiff that *SHOULD* work on LV 8.5, but I didnt test it.

Let me know if there are any problems with it.

 

Enjoy!

 

Nico

0 件の賞賛
メッセージ30/115
7,348件の閲覧回数