Return-Path: <awaresystems.be+caf_=filtered=awaresystems.be@gmail.com>
Delivered-To: filtered@awaresystems.be
Received: from mx-j.one.com (mx-j.one.com [91.198.169.57])
	by mail6.b-one.net (Postfix) with ESMTP id 600C380103FAD
	for <filtered@awaresystems.be>; Tue, 19 Jun 2012 01:42:31 +0200 (CEST)
X-Virus-Scanned: by one.com
Received-SPF: pass (mx-j: domain of awaresystems.be+caf_=filtered=awaresystems.be@gmail.com designates 209.85.210.48 as permitted sender)
X-Greylist: whitelisted by SQLgrey-1.8.0-rc2
Received: from mail-pz0-f48.google.com (mail-pz0-f48.google.com [209.85.210.48])
	by mx-j.one.com (Postfix) with ESMTP id D69FB79C4F4
	for <filtered@awaresystems.be>; Mon, 18 Jun 2012 23:42:30 +0000 (UTC)
Received: by dadz8 with SMTP id z8so8314326dad.21
        for <filtered@awaresystems.be>; Mon, 18 Jun 2012 16:42:30 -0700 (PDT)
Received: by 10.68.233.193 with SMTP id ty1mr31981104pbc.47.1340062949847;
        Mon, 18 Jun 2012 16:42:29 -0700 (PDT)
X-Forwarded-To: filtered@awaresystems.be
X-Forwarded-For: awaresystems.be@gmail.com filtered@awaresystems.be
Delivered-To: awaresystems.be@gmail.com
Received: by 10.143.92.14 with SMTP id u14csp121527wfl;
        Mon, 18 Jun 2012 16:42:28 -0700 (PDT)
Received: by 10.68.193.226 with SMTP id hr2mr57046684pbc.155.1340062948278;
        Mon, 18 Jun 2012 16:42:28 -0700 (PDT)
Received-SPF: softfail (google.com: best guess record for domain of transitioning tiff-bounces@lists.maptools.org does not designate 91.198.169.250 as permitted sender) client-ip=91.198.169.250;
Received: by 10.131.62.5 with POP3 id p5mf4443482dak.0;
        Mon, 18 Jun 2012 16:42:28 -0700 (PDT)
X-Gmail-Fetch-Info: info@awaresystems.be 1 pop.awaresystems.be 110 info@awaresystems.be
Delivered-To: info@awaresystems.be
Received: from mx-s.one.com (mx-s.one.com [91.198.169.250])
	by mail6.b-one.net (Postfix) with ESMTP id 625C480103FAC
	for <info@awaresystems.be>; Tue, 19 Jun 2012 01:41:17 +0200 (CEST)
X-Greylist: domain auto-whitelisted by SQLgrey-1.8.0-rc2
Received: from lists.maptools.org (lists.maptools.org [65.39.174.144])
	by mx-s.one.com (Postfix) with ESMTP id 0B9E37ACDB5
	for <info@awaresystems.be>; Mon, 18 Jun 2012 23:41:16 +0000 (UTC)
Received: from localhost.localdomain (localhost.localdomain [127.0.0.1])
	by lists.maptools.org (Postfix) with ESMTP id 3006D1EDB30;
	Mon, 18 Jun 2012 18:39:12 -0500 (EST)
Received: from mail-gh0-f172.google.com (mail-gh0-f172.google.com
	[209.85.160.172])
	by lists.maptools.org (Postfix) with ESMTPS id B8BA61EDB2C
	for <tiff@lists.maptools.org>; Mon, 18 Jun 2012 18:31:27 -0500 (EST)
Received: by ghbg16 with SMTP id g16so4083086ghb.3
	for <tiff@lists.maptools.org>; Mon, 18 Jun 2012 16:31:26 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.236.173.135 with SMTP id v7mr20200250yhl.19.1340062286398;
	Mon, 18 Jun 2012 16:31:26 -0700 (PDT)
Received: by 10.100.154.9 with HTTP; Mon, 18 Jun 2012 16:31:26 -0700 (PDT)
In-Reply-To: <2874C5A1-5AE9-4F98-A7B4-E0837AE01BDE@gmail.com>
References: <2874C5A1-5AE9-4F98-A7B4-E0837AE01BDE@gmail.com>
Date: Mon, 18 Jun 2012 16:31:26 -0700
X-Google-Sender-Auth: 6M6bSSyCYI-K3944iNymV2nNIfY
Message-ID: <CA+YzLBfb4hoOV0ZfBk_K1SqjWZ1Jx3K4AnwsFZS_hXAkwWYTNg@mail.gmail.com>
From: Frank Warmerdam <warmerdam@pobox.com>
To: Jorge <jormarfe@gmail.com>
Cc: "tiff@lists.maptools.org" <tiff@lists.maptools.org>
Subject: Re: [Tiff] How the multi-planar image should be read/written
X-BeenThere: tiff@lists.maptools.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: TIFF and libtiff discussion <tiff.lists.maptools.org>
List-Unsubscribe: <http://lists.maptools.org/mailman/listinfo/tiff>,
	<mailto:tiff-request@lists.maptools.org?subject=unsubscribe>
List-Archive: <http://lists.maptools.org/mailman/private/tiff>
List-Post: <mailto:tiff@lists.maptools.org>
List-Help: <mailto:tiff-request@lists.maptools.org?subject=help>
List-Subscribe: <http://lists.maptools.org/mailman/listinfo/tiff>,
	<mailto:tiff-request@lists.maptools.org?subject=subscribe>
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Sender: tiff-bounces@lists.maptools.org
Errors-To: tiff-bounces@lists.maptools.org

On Mon, Jun 18, 2012 at 4:15 PM, Jorge <jormarfe@gmail.com> wrote:
> Hello
>
> =A0As far I know, the bands of a multiplanar Image ( planarConfiguration =
tag =3D 2) =A0should be written one after the other. But for me, this is no=
t clear. Please, let me write an example to explain my understanding:
>
> =A0 =A0We have an image withe the following parameters:
>
> =A0 =A0 Lines =3D 6000
> =A0 =A0 Columns =3D 1500
> =A0 =A0 The image has 5 different bands ( samplePerPixel =3D 5 ), and pla=
narconfiguration =3D 2
> =A0 =A0 =A0The image is stripped, with the parameter RowsPerStrip =3D 100=
, so there are 60 strips
>
> =A0 =A0 =A0If I want to read this image using the function readEncodedStr=
ip 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 =3D 300 strips.

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

Yes.

Best regards,
-- =

---------------------------------------+-----------------------------------=
---
I set the clouds in motion - turn up=A0=A0 | Frank Warmerdam, warmerdam@pob=
ox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush=A0 =A0 | Geospatial Software Developer
_______________________________________________
Tiff mailing list: Tiff@lists.maptools.org
http://lists.maptools.org/mailman/listinfo/tiff
http://www.remotesensing.org/libtiff/
