Return-Path: <tiff-bounces@lists.maptools.org>
X-Original-To: info@awaresystems.be
Delivered-To: info@awaresystems.be
Received: from mx-h.b-one.net (mx-h.one.com [91.198.169.55])
	by mail9.b-one.net (Postfix) with ESMTP id BF5E4400122
	for <info@awaresystems.be>; Wed, 29 Apr 2009 18:44:48 +0200 (CEST)
X-Virus-Scanned: by one.com
X-Spam-Score: 0
X-Spam-Level: 
X-Spam-Status: No, score=0 tagged_above=0 required=6 tests=[none]
X-Greylist: domain auto-whitelisted by SQLgrey-1.7.4
Received: from lists.maptools.org (lists.maptools.org [65.39.174.144])
	by mx-h.b-one.net (Postfix) with ESMTP id DC50D1922226
	for <info@awaresystems.be>; Wed, 29 Apr 2009 18:44:47 +0200 (CEST)
Received: from localhost.localdomain (localhost.localdomain [127.0.0.1])
	by lists.maptools.org (Postfix) with ESMTP id 70B7C1D0E40BE;
	Wed, 29 Apr 2009 11:43:37 -0500 (EST)
Received: from blade.simplesystems.org (blade.simplesystems.org [65.66.246.74])
	by lists.maptools.org (Postfix) with ESMTPS id 52D6D1D18B103
	for <tiff@lists.maptools.org>; Wed, 29 Apr 2009 11:07:54 -0500 (EST)
Received: from freddy.simplesystems.org (freddy.simplesystems.org
	[65.66.246.65])
	by blade.simplesystems.org (8.13.8+Sun/8.13.8) with ESMTP id
	n3TG7oPu007161; Wed, 29 Apr 2009 11:07:50 -0500 (CDT)
Date: Wed, 29 Apr 2009 11:07:50 -0500 (CDT)
From: Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
X-X-Sender: bfriesen@freddy.simplesystems.org
To: libtiff - Liste <tiff@lists.maptools.org>
In-Reply-To: <alpine.LNX.2.00.0904290428470.10574@sirius.rasena>
Message-ID: <Pine.SOC.4.64.0904291104530.1108@freddy.simplesystems.org>
References: <FACC2E8B-DC98-40C2-BBC6-6815E6B56562@gmail.com>
	<alpine.LNX.2.00.0904290428470.10574@sirius.rasena>
MIME-Version: 1.0
X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.2
	(blade.simplesystems.org [65.66.246.90]);
	Wed, 29 Apr 2009 11:07:50 -0500 (CDT)
Subject: Re: [Tiff] Libtiff and OpenCV
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="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: tiff-bounces@lists.maptools.org
Errors-To: tiff-bounces@lists.maptools.org

On Wed, 29 Apr 2009, Kai-Uwe Behrmann wrote:

> Am 28.04.09, 20:15 +0200 schrieb Andreas H.:
>> is an 8-Bit grayscale tif.
>>
>> andreas@host:$ identify real_604.tif
>> real_604.tif TIFF 1392x1024 1392x1024+0+0 PseudoClass 256c 8-bit
>> 120.99kb
>
> PseudoClass 256c seems <-> grayscale tif
> You should not miss to set the photometric interpretation
> TIFFTAG_PHOTOMETRIC with TIFFSetField to PHOTOMETRIC_MINISBLACK.

I seem to have missed the original email.  ImageMagick's identify is 
not a very useful tool to evaluate TIFF subformats since ImageMagick 
automatically promotes single channel images to colormapped 
(PseudoClass) with a grayscale colormap ramp.  This means that 
MINISWHITE and MINISBLACK images will be called PseudoClass.

Use libtiff's 'tiffinfo' to obtain more accurate information.

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/
