2004.03.08 10:32 "[Tiff] 32 bit Floating point data type TIFF images", by Vikas Malhotra

2004.03.10 15:40 "Re: [Tiff] 32 bit Floating point data type TIFF images", by Frank Warmerdam

How exactly does TIFF support 32 bit Floating Point image data? What is the range of values a pixel can take for a particular color, and what is the "delta" (difference between successive values)?

As already noted recently on this mailing list - there is no range of values. It's just floating point data.

Seeing this mail, I have a question:

I m interested in saving floating values into tiff file (and reading it after of course), but I try to find information on google but nothing really clear. Can any of you can send an example how to write floating values in a tiff file and read it after?

Dlp,

Use normal methods such as TIFFWriteScanline(), but use a float buffer (one float per pixel).

When writing wet the TIFFTAG_BITSPERSAMPLE to 32 and the TIFFTAG_SAMPLEFORMAT to SAMPLEFORMAT_IEEEFP.

Best regards,

---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam@pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | Geospatial Programmer for Rent