2008.09.07 23:18 "[Tiff] SAMPLEFORMAT_IEEEFP", by acanicio

2008.09.08 23:07 "Re: [Tiff] SAMPLEFORMAT_IEEEFP", by Craig Bruce

Please let me ask another question.

I've had success in writing and reading various format tiff files, 8,16 and 32 bit UINT sampled RGB images.

But I have no luck with floating point values. I use SAMPLEFORMAT_IEEEFP sample format along with 32 bits per sample.

All the pixel values are issued from an 8 bit/sample image, with no conversion or multiplication applied to them.

When I open the file with some well known image editor, the image is completely saturated, all white with values 32767...

Where should I look?

You'll probably have the best luck with float-32 samples if you rescale them to values between 0.0 and 1.0. Kind of sounds like your application is taking the samples and multiplying by 255 (or 127?) while it loads them.

--------------------------+----------------------+--------------------------
Dr. Craig S. Bruce        | Ph 819-771-8303 x205 |             CubeWerx Inc.
Senior Software Developer |   Fax 819-771-8388   |  Gatineau, Québec, Canada
csbruce@cubewerx.com      |  http://csbruce.com/ |  http://www.cubewerx.com/
--------------------------+----------------------+--------------------------

        "When all is said and done, usually more is said than done."