2015.04.20 17:19 "[Tiff] Reading Plannar data with LibTIff", by Richard Nolde
On 04/20/2015 11:00 AM, email@example.com wrote:
> Message: 2
> Date: Mon, 20 Apr 2015 08:21:38 -0500 (CDT)
> From: Bob Friesenhahn <firstname.lastname@example.org>
> Subject: Re: [Tiff] Does TIFFReadRGBAStrip() supports Planner data
> To: Atul Aggarwal <email@example.com>
> Cc: firstname.lastname@example.org
> Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed
I just joined the TIFF mailing list and I am sorry if I am repeating some already answered question.
TIFFReadRGBAStrip() works well for all encodings, color spaces, number of bits, but it looks like it does not convert input Planer Tiff image to interleaved format, is that true or am I missing something?
It is true. Use TIFFReadEncodedStrip() to deal with planar images. This requires more work on your part since you need to decode the strip, and combine the planes to support how your application stores its images.
You may wish to look at the source code for tiffcrop in the utils package which handles interleaved and planar format data at bit depths from 1 to 32 bits for integers plus the standard floating point formats. Data will be converted from planar to interleaved as it is read and can be saved in either format.