AWARE [SYSTEMS] Imaging expertise for the Delphi developer
AWare Systems, Imaging expertise for the Delphi developer, Home TIFF and LibTiff Mailing List Archive

LibTiff Mailing List

TIFF and LibTiff Mailing List Archive
June 2012

Previous Thread
Next Thread

Previous by Thread
Next by Thread

Previous by Date
Next by Date

Contact

The TIFF Mailing List Homepage
This list is run by Frank Warmerdam
Archive maintained by AWare Systems



Valid HTML 4.01!



Thread

2012.06.18 23:15 "How the multi-planar image should be read/written", by <jormarfe@gmail.com>
2012.06.18 23:31 "Re: How the multi-planar image should be read/written", by Frank Warmerdam
2012.06.19 13:40 "Re: How the multi-planar image should be read/written", by Jorge Martin

2012.06.18 23:31 "Re: 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