2005.04.26 15:07 "[Tiff] Floating points to TIFF", by Bastien Guende

2005.04.26 15:41 "Re: [Tiff] Floating points to TIFF", by Joris Van Damme

Bastien,

but i get 1byte data in output instead of 4bytes!!!

                TIFFWriteRawStrip(filout, i, raster2, width);

That should be width*4, for your purposes. See http://www.remotesensing.org/libtiff/man/TIFFWriteRawStrip.3tiff.html, it explains that the last parameter is supposed to be the 'bytes of raw data', as opposed to the samples contained therein.

Also, usually, you'll want to use TIFFWriteEncodedStrip, http://www.remotesensing.org/libtiff/man/TIFFWriteEncodedStrip.3tiff.html, rather then TIFFWriteRawStrip, though I'm not completely sure in this case...

Joris Van Damme
info@awaresystems.be
http://www.awaresystems.be/
Download your free TIFF tag viewer for windows here:
http://www.awaresystems.be/imaging/tiff/astifftagviewer.html