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 inmx019.isp.belgacom.be (8.12.11/8.12.11/Skynet-IN-2.32) with ESMTP id j2UJwv8A006235
        for <joris.at.lebbeke@skynet.be>; Wed, 30 Mar 2005 21:58:58 +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 3F238194305A; Wed, 30 Mar 2005 14:58:26 -0500 (EST)
X-Original-To: tiff@remotesensing.org
Delivered-To: tiff@remotesensing.org
Received: from outmx020.isp.belgacom.be (outmx020.isp.belgacom.be
	[195.238.2.201])
	by xserve.flids.com (Postfix) with ESMTP id 778821943029
	for <tiff@remotesensing.org>; Wed, 30 Mar 2005 14:58:22 -0500 (EST)
Received: from outmx020.isp.belgacom.be (localhost [127.0.0.1])
	by outmx020.isp.belgacom.be (8.12.11/8.12.11/Skynet-OUT-2.22) with
	ESMTP id j2UJwHmv004755
	for <tiff@remotesensing.org>; Wed, 30 Mar 2005 21:58:17 +0200
	(envelope-from <joris.at.lebbeke@skynet.be>)
Received: from dfgrrxsknr4e (43-169.245.81.adsl.skynet.be [81.245.169.43])
	by outmx020.isp.belgacom.be (8.12.11/8.12.11/Skynet-OUT-2.22) with SMTP
	id j2UJwG87004746; Wed, 30 Mar 2005 21:58:16 +0200
	(envelope-from <joris.at.lebbeke@skynet.be>)
Message-ID: <004e01c53563$01c2b860$2ba9f551@dfgrrxsknr4e>
From: "Joris" <joris.at.lebbeke@skynet.be>
To: "Rick Schumeyer" <rschumeyer@ieee.org>, <tiff@remotesensing.org>
References: <000f01c53560$77ca3400$0200a8c0@dell8200>
Subject: Re: [Tiff] reading 16 bit grayscale
Date: Wed, 30 Mar 2005 21:59:35 +0200
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 6.00.2800.1478
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1478
Cc: 
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.0000003e
X-MSP-STORE: Wed, 30 Mar 2005 21:59:18 +0200
Status:   

> 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 values.
>
> 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?

TIFFReadScanline would be a valid way to do it, if the image contains strips, as
opposed to tiles. Best read
http://www.remotesensing.org/libtiff/libtiff.html#Scanlines, and the next few
topics on that page.


Joris Van Damme
info@awaresystems.be
http://www.awaresystems.be/
Download your free TIFF tag viewer for windows here:
http://www.awaresystems.be/imaging/tiff/astifftagviewer.html

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