AWARE SYSTEMS
TIFF and LibTiff Mail List Archive

Thread

1997.01.07 11:41 "Efficient load of a small part of an image?", by Filip Larsen
1997.01.07 13:27 "Re: Efficient load of a small part of an image?", by Rainer Wiesenfarth
1997.01.07 18:02 "Re: Efficient load of a small part of an image?", by Daniel McCoy

1997.01.07 13:27 "Re: Efficient load of a small part of an image?", by Rainer Wiesenfarth

I was wondering if there is a simple, yet efficient way of loading only a small rectangular part of a TIFF image using libtiff?

You do not have to read the whole image, but can use the functions

    TIFFRead{Raw,Encoded}{Tile,Strip}

They only read a part of the image. The disadvantage of these functions is that you have to take care about PlanarConfig, BitsPerSample, PhotometricInterpretation and some other stuff. But the routines deal with low level I/O, byteorder, Compression, and SamplesPerPixel.

Greetings Rainer

-- 
| This mail came from:
| Rainer Wiesenfarth                 Tel: +49 7364 203321
| c/o Carl Zeiss, Div. Phm-A         Fax: +49 7364 202829
| 73446 Oberkochen                e-mail: Wiesenfarth@zeiss.de
| Germany