AWARE SYSTEMS
TIFF and LibTiff Mail List Archive

Thread

2007.08.02 16:38 "[Tiff] reading planar images using TIFFReadScanline", by Christian Henning
2007.08.02 16:52 "Re: [Tiff] reading planar images using TIFFReadScanline", by Bob Friesenhahn
2007.08.02 17:45 "Re: [Tiff] reading planar images using TIFFReadScanline", by Christian Henning
2007.08.03 08:33 "Re: [Tiff] reading planar images using TIFFReadScanline", by Kai-Uwe Behrmann
2007.08.03 15:17 "Re: [Tiff] reading planar images using TIFFReadScanline", by Christian Henning
2007.08.04 09:02 "Re: [Tiff] reading planar images using TIFFReadScanline", by Kai-Uwe Behrmann
2007.08.02 17:54 "Re: [Tiff] reading planar images using TIFFReadScanline", by Frank Warmerdam

2007.08.02 17:54 "Re: [Tiff] reading planar images using TIFFReadScanline", by Frank Warmerdam

Hi there, is it correct to say that reading using TIFFReadScanline is not working?

Christian,

As far as I know it works fine, within it's intended constraints (stripped files only).

 > Also, is there one way of reading all kinds of tiff

images using just one TIFFRead*****?

The TIFFReadRGBAImage() interface will work with tiled and stripped files. But there are still image types (unusual bit depths for instance) that it won't work with.

The libtiff API is closely aligned with the TIFF format itself. This is good in some ways, but it means you can't just treat the TIFF file in a very abstract way. Instead you are forced to deal seperately with tiled and stripped images, and differently with pixel and band interleaved (planar configuration contiguous and seperate) images.

Consider using a higher level library if you are looking for simplified access.

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    | President OSGeo, http://osgeo.org