2004.03.02 21:17 "[Tiff] Reading caspian.tif", by Simon Granger

2004.03.03 16:40 "Re: [Tiff] Reading caspian.tif", by Andrey Kiselev


I downloaded the TIFF test images at ftp://ftp.remotesensing.org/pub/libtiff/pics-3.6.1.tar.gz, loaded caspian.tif with my own code using libtiff and saw the following problem:

The samples in caspian.tif are double-precision IEEE floating point with no SMINSAMPLEVALUE and SMAXSAMPLEVALUE tags. So when I read the samples, I'm expecting that they'll be in the range [0.0, 1.0]. But they're not: the actual range of all the samples in caspian.tif is [9.0, 946.0].

But why did you expected the values will be in 0.0,1.0 range? If we have floating point data then the whole range can be occupied. For displaying purposes you should find min/max values yourself and scale image properly.


Andrey V. Kiselev
Home phone: +7 812 5274898 ICQ# 26871517