AWARE SYSTEMS
TIFF and LibTiff Mail List Archive

Thread

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

2012.06.19 13:40 "Re: [Tiff] How the multi-planar image should be read/written", by Jorge Martin

Many thanks for your answers!!

I am developing a library to read/write some type of GeoTIFF images, and for validate the tool I am looking to a GeoTIFF written in Tiles and which has multiplanar configuration (PlanarConfiguration = 2), Do you have any example of this type of image?

Best Regards,

Jorge Martin

2012/6/19 Frank Warmerdam <warmerdam@pobox.com>

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.