Return-Path: <tiff-bounces@lists.maptools.org>
Received: from inas001.isp.belgacom.be (localhost [127.0.0.1])
        by inav009.isp.belgacom.be (8.12.11.20060308/8.12.11/Skynet-IN-AV-3.00) with ESMTP id l0VI8M1V030787
        for <joris.at.lebbeke@skynet.be>; Wed, 31 Jan 2007 19:08:22 +0100
        (envelope-from <tiff-bounces@lists.maptools.org>)
Received: from inmx007.isp.belgacom.be (inmx007.isp.belgacom.be [195.238.5.89])
        by inas001.isp.belgacom.be (8.12.11.20060308/8.12.11/Skynet-IN-AS-2.03) with ESMTP id l0VI8ACF011819
        for <joris.at.lebbeke@skynet.be>; Wed, 31 Jan 2007 19:08:13 +0100
        (envelope-from <tiff-bounces@lists.maptools.org>)
Received: from duke.maptools.org (r153.dmsolutions.ca [209.217.116.153] (may be forged))
        by inmx007.isp.belgacom.be (8.12.11.20060308/8.12.11/Skynet-IN-2.32) with ESMTP id l0VI7mMx013274
        for <joris.at.lebbeke@skynet.be>; Wed, 31 Jan 2007 19:07:49 +0100
        (envelope-from <tiff-bounces@lists.maptools.org>)
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 l0VHrnP7031356;
	Wed, 31 Jan 2007 12:54:07 -0500
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 l0VHrkvZ031353
	for <tiff@lists.maptools.org>; Wed, 31 Jan 2007 12:53:46 -0500
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
	l0VHrfw5006902; Wed, 31 Jan 2007 11:53:41 -0600 (CST)
Date: Wed, 31 Jan 2007 11:53:41 -0600 (CST)
From: Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
X-X-Sender: bfriesen@blade.simplesystems.org
To: Reinhard Mayr aka Czerwinski <czerwinski1977@gmx.net>
Subject: Re: [Tiff] 16bit grayscale with colormap
In-Reply-To: <20070131172011.36820@gmx.net>
Message-ID: <Pine.SOC.4.60.0701311147080.24274@blade.simplesystems.org>
References: <20070131163904.36820@gmx.net>
	<Pine.SOC.4.60.0701311056040.24274@blade.simplesystems.org>
	<20070131172011.36820@gmx.net>
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.00002052
X-MSP-STORE: Wed, 31 Jan 2007 19:08:24 +0100
Status:   

On Wed, 31 Jan 2007, Reinhard Mayr aka Czerwinski wrote:

> Bob,
>
> thanks for that quick response! Attached there is the mentioned sample file I created with a hex editor. (The colormap contains just crap data but should be enough for a proof of concept.) The opening behavior of some programs was described in my initial post.
>
> How can you display the file?

No, I can not.  In fact libtiff's tiffinfo does not like the file 
either (libtiff fails to locate the colormap) so it seems that the 
file is not formulated correctly:

% tiffinfo CytoScout16bitImageJ-0106_3-v5.tif
CytoScout16bitImageJ-0106_3-v5.tif: Error fetching data for field "ColorMap".
MissingRequired: CytoScout16bitImageJ-0106_3-v5.tif: TIFF directory is missing required "Colormap" field.

% tiffdump CytoScout16bitImageJ-0106_3-v5.tif
CytoScout16bitImageJ-0106_3-v5.tif:
Magic: 0x4d4d <big-endian> Version: 0x2a
Directory 0: offset 8 (0x8) next 0 (0)
SubFileType (254) LONG (4) 1<0>
ImageWidth (256) SHORT (3) 1<200>
ImageLength (257) SHORT (3) 1<200>
BitsPerSample (258) SHORT (3) 1<16>
Photometric (262) SHORT (3) 1<3>
ImageDescription (270) ASCII (2) 34<ImageJ=1.37v\nmin=57.0\nma ...>
StripOffsets (273) LONG (4) 1<768>
SamplesPerPixel (277) SHORT (3) 1<1>
RowsPerStrip (278) SHORT (3) 1<200>
StripByteCounts (279) LONG (4) 1<80000>
Colormap (320) SHORT (3) 196608<12337 12851 13365 13879 14393 16706 
17220 17734 12337 12851 13365 13879 14393 16706 17220 17734 12337 
12851 13365 13879 14393 16706 17220 17734 ...>

The error reported by libtiff when used by GraphicsMagick is that it 
fails to retrieve the colormap:

   Error fetching data for field "ColorMap".

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/
