AWARE [SYSTEMS] Imaging expertise for the Delphi developer
AWare Systems, Imaging expertise for the Delphi developer, Home TIFF and LibTiff Mailing List Archive

LibTiff Mailing List

TIFF and LibTiff Mailing List Archive
March 2004

Previous Thread
Next Thread

Previous by Thread
Next by Thread

Previous by Date
Next by Date

Contact

The TIFF Mailing List Homepage
This list is run by Frank Warmerdam
Archive maintained by AWare Systems



Valid HTML 4.01!



Thread

2004.03.08 11:02 "32 bit Floating point data type TIFF images", by <vikas.malhotra@wipro.com>
2004.03.08 18:30 "Re: 32 bit Floating point data type TIFF images", by Chris Cox
2004.03.10 15:23 "Re: 32 bit Floating point data type TIFF images", by <dlpnet@free.fr>
2004.03.10 15:40 "Re: 32 bit Floating point data type TIFF images", by Frank Warmerdam

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

Dlpnet wrote:
> Hello,
> 
> > > 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