2011.06.30 15:21 "[Tiff] Is it possible to read a large tiff image in portions?", by Hib Eris
- 2011.06.30 15:45 "Re: [Tiff] Is it possible to read a large tiff image in portions?", by Olivier Paquet
- 2011.06.30 15:48 "Re: [Tiff] Is it possible to read a large tiff image in portions?", by Bob Friesenhahn
- 2011.06.30 15:51 "Re: [Tiff] Is it possible to read a large tiff image in portions?", by Steve Mills
- 2011.06.30 15:52 "Re: [Tiff] Is it possible to read a large tiff image in portions?", by John
- 2011.06.30 16:02 "Re: [Tiff] Is it possible to read a large tiff image in portions?", by David Burken
2011.06.30 15:52 "Re: [Tiff] Is it possible to read a large tiff image in portions?", by John
On 30 June 2011 16:21, Hib Eris <hib@hiberis.nl> wrote:
To avoid this, I would like to read and process the image in pieces, how should I do this with libtiff?
I noticed
int TIFFReadRGBATile(TIFF *tif, uint32 x, uint32 y, uint32 *raster), but that seems to only work for tile-based tiff images. I would like to have a solution for all tiff images, not only tile-based ones.
You can use TIFFReadRGBAStrip() to get a strip of pixels out of a non-tiled TIFF image.
Another possible solution is to convert your strip tiffs into tiled tiffs. Something like:
$ tiffcp -t -w 128 -l 128 big-strip.tif big-tile.tif
John