Return-Path: <tiff-admin@remotesensing.org>
Received: from tee.skynet.be (tee.skynet.be [195.238.3.4])
        by six.skynet.be (8.12.9/8.12.9/Skynet-MAILSTORE-2.14) with ESMTP id i1AN8XgJ029711
        for <joris.at.lebbeke@skynet.be>; Wed, 11 Feb 2004 00:08:33 +0100
        (envelope-from <tiff-admin@remotesensing.org>)
Received: from yoda.imagelinks.com ([208.24.120.42])
        by tee.skynet.be (8.12.9/8.12.9/Skynet-IN-2.32) with ESMTP id i1AN7q8U014005
        for <joris.at.lebbeke@skynet.be>; Wed, 11 Feb 2004 00:07:53 +0100
        (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.2) with ESMTP id i1AN7El08436;
	Tue, 10 Feb 2004 18:07:14 -0500
Received: from fuzzylog.simplesystems.org (fuzzylog.simplesystems.org [65.66.246.65])
	by yoda.imagelinks.com (8.11.6/8.11.2) with ESMTP id i1AN65l08412
	for <tiff@remotesensing.org>; Tue, 10 Feb 2004 18:06:05 -0500
Received: from scooby.simplesystems.org (scooby.simplesystems.org [65.66.246.67])
	by fuzzylog.simplesystems.org (8.9.3/8.9.3) with ESMTP id RAA09293;
	Tue, 10 Feb 2004 17:05:57 -0600 (CST)
From: Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
X-X-Sender: bfriesen@scooby.simplesystems.org
To: Liliana RESENDIZ <lresendiz@cmr3.com.mx>
cc: TIFF Remote Sensing <tiff@remotesensing.org>
Subject: Re: [Tiff] displaying 12 bit tiff image
In-Reply-To: <006d01c3f025$81fb6ba0$2101a8c0@PCLILIANA>
Message-ID: <Pine.GSO.4.44.0402101700340.25869-100000@scooby.simplesystems.org>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: tiff-admin@remotesensing.org
Errors-To: tiff-admin@remotesensing.org
X-BeenThere: tiff@remotesensing.org
X-Mailman-Version: 2.0.11
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: Tue, 10 Feb 2004 17:05:57 -0600 (CST)
X-UIDL: 0477614f8730d6d765d7afdaa7f31f6e
Status: RO

On Tue, 10 Feb 2004, Liliana RESENDIZ wrote:

> Well, it is a 12-bit monochrome camera, and the data range is [0,4095], but
> i can't save it into a 12-bit buffer, so i use a 16-bit buffer.
>
> > (although several companies have made the mistake of not scaling --
> > it is spelled out pretty clearly in the TIFF spec.)
>
> ... maybe. But the spec from MIL libraries (from matrox) only has a M_MIL
> format  and "it is use respects the TIFF 6.0 specification". It is not my
> purpose to display the image with the matrox display libraries. And i have
> been tried to display into a TImage.

Unfortunately, the TIFF specification is quite broad. Many things that
TIFF allows you to do are not part of the specification.  There is a
"baseline" specification which specifies what all compliant readers
should support, but once you fall outside of the baseline parts, you
are subject to the whim of the software authors.

It is possible to write software that reads and writes native 12-bit
tiff using libtiff, but it is not pleasant to do so.  Development
GraphicsMagick supports it.  I believe that development ImageMagick
also includes some support for native 12-bit tiff.

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

_______________________________________________
Tiff mailing list
Tiff@remotesensing.org
http://remotesensing.org/mailman/listinfo/tiff
