AWARE SYSTEMS
TIFF and LibTiff Mail List Archive

Thread

2004.07.13 22:44 "[Tiff] multi image "no put routine" error", by Kuo-Lin Fang
2004.07.14 01:56 "Re: [Tiff] multi image "no put routine" error", by Frank Warmerdam
2004.07.14 14:48 "Re: [Tiff] multi image "no put routine" error", by Kuo-Lin Fang
2004.07.14 15:10 "Re: [Tiff] multi image "no put routine" error", by Frank Warmerdam
2004.07.14 16:57 "Re: [Tiff] multi image "no put routine" error", by Joris

2004.07.14 15:10 "Re: [Tiff] multi image "no put routine" error", by Frank Warmerdam

Got you. Yes, you are right.

The last 4 directories are 16-bit gray scale, so I can not use TIFFReadRGBAImage. But instead, it seems like no function I can use to get the whole gray scale image? Should I use something like TIFFReadEncodedStrip?

Kuolin,

Generally speaking, yes, you should drop down to using the strip or tile based reading functions as appropriate, or possibly the scanline based methods.

It is a definate deficiency of the TIFF library that there is no simple function to read any desired window of data from a TIFF file in the TIFF file underlying data type without having to have different cases for different organizations of file. It might be nice for us to add a TIFFReadEncodedWindow() that would work for stripped or tiled files and that also took care of reading all samples regardless of the planarconfig of the file.

However, other than the RGBA interface, libtiff has mostly aimed at providing access to TIFF files in a way as close as possible to the physical representation.

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