2012.06.18 23:31 "Re: [Tiff] How the multi-planar image should be read/written", by Frank Warmerdam

2012.06.18 23:31 "Re: [Tiff] How the multi-planar image should be read/written", by Frank Warmerdam

On Mon, Jun 18, 2012 at 4:15 PM, Jorge <jormarfe@gmail.com> wrote:

> Hello
>

>  As far I know, the bands of a multiplanar Image ( planarConfiguration tag = 2)  should be written one after the other. But for me, this is not clear. Please, let me write an example to explain my understanding:

>
>    We have an image withe the following parameters:
>
>     Lines = 6000
>     Columns = 1500
>     The image has 5 different bands ( samplePerPixel = 5 ), and planarconfiguration = 2
>      The image is stripped, with the parameter RowsPerStrip = 100, so there are 60 strips
>

>      If I want to read this image using the function readEncodedStrip from libtiff library. The number of strips to be read is 5*60? The first 60 strips corresponds to the first band, the next 60 strips corresponds to the second band and so on. Are this statements correct?

Jorge,

Yes, this all sounds right.

And given five bands/samples you will have 60*5 = 300 strips.

>

>     For Tiled image the approach should be similar, isn't it?

Yes.

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 Software Developer