Received: from mailgate002.isp.belgacom.be (mailgate002.isp.belgacom.be [195.238.6.87])
	by maildelivery016.isp.belgacom.be (Postfix) with ESMTP id D097655803E
	for <joris.at.lebbeke@skynet.be>; Tue, 24 Jul 2007 01:04:37 +0200 (CEST)
Received: from r153.dmsolutions.ca (HELO duke.maptools.org) ([209.217.116.153])
  by in.mx.skynet.be with ESMTP; 24 Jul 2007 01:04:37 +0200
Received: from duke.maptools.org (duke.maptools.org [127.0.0.1])
	by duke.maptools.org (8.12.11/8.12.10) with ESMTP id l6NMoMdZ012977;
	Mon, 23 Jul 2007 18:50:31 -0400
Received: from scooby.simplesystems.org (scooby.simplesystems.org
	[65.66.246.67])
	by duke.maptools.org (8.12.11/8.12.10) with ESMTP id l6NMoEZL012972
	for <tiff@lists.maptools.org>; Mon, 23 Jul 2007 18:50:14 -0400
Received: from blade.simplesystems.org (blade.simplesystems.org [65.66.246.74])
	by scooby.simplesystems.org (8.12.10+Sun/8.12.10) with ESMTP id
	l6NMo8W7017024; Mon, 23 Jul 2007 17:50:08 -0500 (CDT)
Date: Mon, 23 Jul 2007 17:50:08 -0500 (CDT)
From: Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
X-X-Sender: bfriesen@blade.simplesystems.org
To: Christian Henning <chhenning@gmail.com>
Subject: Re: [Tiff] Planar Images
In-Reply-To: <949801310707231524m3b99e638y80c2de6d39525019@mail.gmail.com>
Message-ID: <Pine.SOC.4.60.0707231745350.922@blade.simplesystems.org>
References: <949801310707231524m3b99e638y80c2de6d39525019@mail.gmail.com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed
Cc: tiff@lists.maptools.org
X-BeenThere: tiff@lists.maptools.org
X-Mailman-Version: 2.1.4
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>
Sender: tiff-bounces@lists.maptools.org
Errors-To: tiff-bounces@lists.maptools.org
X-UIDL: 000000000023ceae.0000267a
X-MSP-STORE: Tue, 24 Jul 2007 01:04:37 --21-99
Status:   

On Mon, 23 Jul 2007, Christian Henning wrote:

> Hi there, can somebody point me to an explanation on how planar images
> are stored inside a file. Esspecially when using TIFFReadEncodedStrip.
[ stuff removed ]
> How can I access the red, green and, blue components? Or asks
> differently when I read a strip what's in it? I could image several
> memory pattern.

In a planar image, there is only one type of sample for each plane. 
For example, in an RGB image, there are separate planes for red, 
green, and blue.  That means you need to retrieve data three times in 
order to compose a complete row/strip of RGB pixels.  Does that help?

Planar images are elegant but can be slower.

Bob
======================================
Bob Friesenhahn
bfriesen@simple.dallas.tx.us, http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer,    http://www.GraphicsMagick.org/

_______________________________________________
Tiff mailing list: Tiff@lists.maptools.org
http://lists.maptools.org/mailman/listinfo/tiff
http://www.remotesensing.org/libtiff/
