Return-Path: <tiff-admin@remotesensing.org>
Received: from inmx005.isp.belgacom.be (inmx005.isp.belgacom.be [195.238.3.148])
        by mailst006.isp.belgacom.be (8.12.9/8.12.9/Skynet-MAILSTORE-2.14) with ESMTP id i3T628sq012829
        for <joris.at.lebbeke@skynet.be>; Thu, 29 Apr 2004 08:02:10 +0200
        (envelope-from <tiff-admin@remotesensing.org>)
Received: from yoda.imagelinks.com ([208.24.120.44])
        by inmx005.isp.belgacom.be (8.12.9/8.12.9/Skynet-IN-2.32) with ESMTP id i3T624q4031082
        for <joris.at.lebbeke@skynet.be>; Thu, 29 Apr 2004 08:02:04 +0200
        (envelope-from <tiff-admin@remotesensing.org>)
Received: from yoda.imagelinks.com (localhost.localdomain [127.0.0.1])
	by yoda.imagelinks.com (8.11.6/8.11.6) with ESMTP id i3T60Ln02823;
	Thu, 29 Apr 2004 02:00:21 -0400
Received: from smtp01.oce.nl (smtp01.oce.nl [134.188.1.25])
	by yoda.imagelinks.com (8.11.6/8.11.6) with ESMTP id i3T5x6n02767
	for <tiff@remotesensing.org>; Thu, 29 Apr 2004 01:59:06 -0400
Received: from smtp05 (smtp05.oce.nl [134.188.1.26])
	by smtp01.oce.nl (8.12.8p1/8.12.8) with ESMTP id i3T5wKho019500;
	Thu, 29 Apr 2004 07:58:20 +0200 (MEST)
Received: from smtp-venlo.oce.nl (localhost [127.0.0.1])
	by smtp05 (8.12.8p1/8.12.8) with ESMTP id i3T5wIN5020689;
	Thu, 29 Apr 2004 07:58:19 +0200 (MEST)
Received: from smtp03.oce.nl (smtp03.oce.nl [134.188.150.26])
	by smtp-venlo.oce.nl (8.12.8p1/8.12.8) with ESMTP id i3T5wGkQ018470;
	Thu, 29 Apr 2004 07:58:17 +0200 (MEST)
Received: from oce.nl (localhost [127.0.0.1])
	by smtp03.oce.nl (8.12.8p1/8.12.8) with ESMTP id i3T5wF9W020648;
	Thu, 29 Apr 2004 07:58:16 +0200 (MEST)
Message-ID: <40909977.B938F376@oce.nl>
From: Rob van den Tillaart <rvdt@oce.nl>
X-Mailer: Mozilla 4.61 [en]C-CCK-MCD   (WinNT; I)
X-Accept-Language: en,nl
MIME-Version: 1.0
To: pvosta@maia-scientific.com
CC: tiff@remotesensing.org
Subject: Re: [Tiff] Reading and writing 3D tiff images
References: <408FB5A0.6010404@maia-scientific.com>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Filter-Version: 1.12a-oce (smtp-venlo)
X-Spam-Scanner: E-mail has been checked
X-Spam-Scanner-Check: not spam (whitelisted), SpamAssassin (score=-6.3,
	required 5, BAYES_01 -5.40, EMAIL_ATTRIBUTION -0.50,
	QUOTED_EMAIL_TEXT -0.38, REFERENCES -0.00, REPLY_WITH_QUOTES 0.00,
	USER_AGENT_MOZILLA_XM 0.00)
Sender: tiff-admin@remotesensing.org
Errors-To: tiff-admin@remotesensing.org
X-BeenThere: tiff@remotesensing.org
X-Mailman-Version: 2.0.13
Precedence: bulk
List-Help: <mailto:tiff-request@remotesensing.org?subject=help>
List-Post: <mailto:tiff@remotesensing.org>
List-Subscribe: <http://remotesensing.org/mailman/listinfo/tiff>,
	<mailto:tiff-request@remotesensing.org?subject=subscribe>
List-Id: TIFF and libtiff discussion <tiff.remotesensing.org>
List-Unsubscribe: <http://remotesensing.org/mailman/listinfo/tiff>,
	<mailto:tiff-request@remotesensing.org?subject=unsubscribe>
List-Archive: <http://remotesensing.org/pipermail/tiff/>
Date: Thu, 29 Apr 2004 07:58:15 +0200
X-UIDL: 19f0240cdb5c81c81953b186c8c4eb8d


Hi Peter,

As far as I know the spec TIFF only supports 2D bitmaps. There are 2
ways to solve this.
- first: 
Slicing your 3D data in 2D planes and store every slice in a 2D bitmap.
To recreate your 3D
'bitspace' you have to read all planes. These places can be compressed
with any supported
lossless compression scheme.
- Second:
You could register new tags which defines a new dataformat to store the
3D data in a single 
entity. (see tiffspec how to register). These new tags could also
include new 3D compression schemes with which I'm quite un familiar. A
quick search http://www.3dcompression.com/ shows
that this topic is still under research.

Question: 
How big are those 3D images, are they cubical (x ~= y ~= z) or flat (x~=
y >> z)
of tube like (x >> y ~= z)? What are typical values for xyz?

regards,
rob tillaart


Peter Van Osta wrote:
> 
> Hi,
> 
> I would like to read and write 3D-Tiff images. I have a pointer in
> memory to 3D 8-bit, 16-bit or RGBX-data and would like to dump these
> data into a TIFF-file and later on be able to read them back. I use gcc
> on RedHat Linux and can use libtiff.
> 
> I have tried to find a code example to read and write 3D TIFF-imges to
> get started, but in vain. If I at least could dump the 3D 8-bit and
> RGBX-data into a TIFF-file I would be very happy.
> 
> Any type of lossless datacompression would be welcome too.
> 
> Regards,
> 
> Peter Van Osta
> 
> _______________________________________________
> Tiff mailing list
> Tiff@remotesensing.org
> http://remotesensing.org/mailman/listinfo/tiff
_______________________________________________
Tiff mailing list
Tiff@remotesensing.org
http://remotesensing.org/mailman/listinfo/tiff
