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 2005

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

2005.03.19 15:35 "Floating Point Sample Format", by Charles Auer
2005.03.19 16:23 "Re: Floating Point Sample Format", by Frank Warmerdam
2005.03.21 19:51 "Re: Floating Point Sample Format", by Chris Cox
2005.03.21 20:56 "Re: Floating Point Sample Format", by Frank Warmerdam
2005.03.21 21:12 "Re: Floating Point Sample Format", by Chris Cox
2005.03.21 23:26 "Re: Floating Point Sample Format", by Joris Van Damme

2005.03.19 16:23 "Re: Floating Point Sample Format", by Frank Warmerdam

On Sat, 19 Mar 2005 15:35:34 +0000, Charles Auer wrote:
> 
> I need more information about floating point sample format.
> 
> Are TIFFTAG_SMINSAMPLEVALUE (340) and TIFFTAG_SMAXSAMPLEVALUE (341) intended
> for use with floating point samples?

Charles,

I believe SMINSAMPLEVALUE and SMAXSAMPLEVALUE would 
be suitable for use with floating point samples.

> If so, than how do you scale sample values when they are not included?

Many options exist:
 o Scan the image to get scaling bounds. 
 o Ask the user. 
 o Do something application specific. 
 o Assume floating point values are in the range 0.0 to 1.0 and 
    scale accordingly.

My TIFF viewer scans a subset of blocks of the image to get scaling
min and max values and then allows the user to alter them if they don't
like the selected values.  

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