Return-Path: <tiff-bounces@remotesensing.org>
Received: from xserve.flids.com (adsl-065-083-169-202.sip.mco.bellsouth.net [65.83.169.202])
        by inmx006.isp.belgacom.be (8.12.11/8.12.11/Skynet-IN-2.32) with ESMTP id j2UJqatH021429
        for <joris.at.lebbeke@skynet.be>; Wed, 30 Mar 2005 21:52:37 +0200
        (envelope-from <tiff-bounces@remotesensing.org>)
Received: from adsl-065-083-169-202.sip.mco.bellsouth.net (localhost [127.0.0.1])
	by xserve.flids.com (Postfix) with ESMTP
	id 57BD71942FE4; Wed, 30 Mar 2005 14:52:17 -0500 (EST)
X-Original-To: tiff@remotesensing.org
Delivered-To: tiff@remotesensing.org
Received: from scooby.simplesystems.org (scooby.simplesystems.org
	[65.66.246.67])
	by xserve.flids.com (Postfix) with ESMTP id 98F5D1942FC0
	for <tiff@remotesensing.org>; Wed, 30 Mar 2005 14:52:13 -0500 (EST)
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
	j2UJq4Ai014010; Wed, 30 Mar 2005 13:52:04 -0600 (CST)
Date: Wed, 30 Mar 2005 13:52:03 -0600 (CST)
From: Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
X-X-Sender: bfriesen@blade.simplesystems.org
To: Rick Schumeyer <rschumeyer@ieee.org>
Subject: Re: [Tiff] reading 16 bit grayscale
In-Reply-To: <000f01c53560$77ca3400$0200a8c0@dell8200>
Message-ID: <Pine.SOC.4.60.0503301350250.8945@blade.simplesystems.org>
References: <000f01c53560$77ca3400$0200a8c0@dell8200>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed
Cc: tiff@remotesensing.org
X-BeenThere: tiff@remotesensing.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: TIFF and libtiff discussion  <tiff.remotesensing.org>
List-Unsubscribe: <http://xserve.flids.com/mailman/listinfo/tiff>,
	<mailto:tiff-request@remotesensing.org?subject=unsubscribe>
List-Archive: <http://xserve.flids.com/pipermail/tiff>
List-Post: <mailto:tiff@remotesensing.org>
List-Help: <mailto:tiff-request@remotesensing.org?subject=help>
List-Subscribe: <http://xserve.flids.com/mailman/listinfo/tiff>,
	<mailto:tiff-request@remotesensing.org?subject=subscribe>
Sender: tiff-bounces@remotesensing.org
Errors-To: tiff-bounces@remotesensing.org
X-UIDL: 000000000023ceae.0000003d
X-MSP-STORE: Wed, 30 Mar 2005 21:52:47 +0200
Status:   

On Wed, 30 Mar 2005, Rick Schumeyer wrote:

> I've searched the FAQ and the archives, and I've seen some discussion
>
> about 16 bit grayscale images.  But I haven't seen the answer to:
>
> how can I use libtiff to read a 16 bit grayscale tiff?  I don't want to
> display
>
> it, and I don't want it converted to 8-bit.  I just want access to  the
> 16-bit
>
> My guess is that I should use something like TIFFReadScanLine.  Is this
>
> correct?  Is there a way to read the entire image in one call?

Yes, if the file is organized in scanlines or strips then you should 
use TIFFReadScanLine.  Note that the 16-bit words are returned in 
native endian order for your CPU.  You will need to invoke 
TIFFReadScanLine() for each scanline in the image.

Bob
======================================
Bob Friesenhahn
bfriesen@simple.dallas.tx.us, http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer,    http://www.GraphicsMagick.org/
_______________________________________________
Tiff mailing list
Tiff@remotesensing.org
http://xserve.flids.com/mailman/listinfo/tiff
