2005.03.19 16:23 "Re: [Tiff] Floating Point Sample Format", by Frank Warmerdam
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:
- Scan the image to get scaling bounds.
- Ask the user.
- Do something application specific.
- 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