Return-Path: <tiff-bounces@remotesensing.org>
Received: from inmx005.isp.belgacom.be (inmx005.isp.belgacom.be [195.238.3.148])
        by mailst006.isp.belgacom.be (8.12.11/8.12.11/Skynet-MAILSTORE-2.14) with ESMTP id i6EFBIi5020250
        for <joris.at.lebbeke@skynet.be>; Wed, 14 Jul 2004 17:11:18 +0200
        (envelope-from <tiff-bounces@remotesensing.org>)
Received: from xserve.flids.com (adsl-065-083-169-202.sip.mco.bellsouth.net [65.83.169.202])
        by inmx005.isp.belgacom.be (8.12.11/8.12.11/Skynet-IN-2.32) with ESMTP id i6EFB5Dw009330
        for <joris.at.lebbeke@skynet.be>; Wed, 14 Jul 2004 17:11:07 +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 847F712CA1A; Wed, 14 Jul 2004 11:10:51 -0400 (EDT)
X-Original-To: tiff@remotesensing.org
Delivered-To: tiff@remotesensing.org
Received: from sabre.velocet.net (sabre.velocet.net [216.138.209.205])
	by xserve.flids.com (Postfix) with ESMTP id B77C812C9EE
	for <tiff@remotesensing.org>; Wed, 14 Jul 2004 11:10:49 -0400 (EDT)
Received: from pobox.com (H156.C195.tor.velocet.net [216.138.195.156])
	by sabre.velocet.net (Postfix) with ESMTP
	id A9F4913AE30; Wed, 14 Jul 2004 11:10:46 -0400 (EDT)
Message-ID: <40F54CFF.6080100@pobox.com>
Date: Wed, 14 Jul 2004 11:10:55 -0400
From: Frank Warmerdam <warmerdam@pobox.com>
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040113
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: Kuo-Lin Fang <klfang@cs.umd.edu>
Subject: Re: [Tiff] multi image "no put routine" error
References: <Pine.SOL.4.33.0407141038070.14132-100000@willy.cs.umd.edu>
In-Reply-To: <Pine.SOL.4.33.0407141038070.14132-100000@willy.cs.umd.edu>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
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: 3652b587d27fa781c56203ed189e53e7

Kuo-Lin Fang wrote:
> Got you.  Yes, you are right.
> The last 4 directories are 16-bit gray scale, so
> I can not use TIFFReadRGBAImage. But instead,
> it seems like no function I can use to get the whole
> gray scale image?  Should I use something like
> TIFFReadEncodedStrip?

Kuolin,

Generally speaking, yes, you should drop down to using the strip or
tile based reading functions as appropriate, or possibly the scanline
based methods.

It is a definate deficiency of the TIFF library that there is no simple
function to read any desired window of data from a TIFF file in the TIFF
file underlying data type without having to have different cases for
different organizations of file.  It might be nice for us to add a
TIFFReadEncodedWindow() that would work for stripped or tiled files and
that also took care of reading all samples regardless of the planarconfig
of the file.

However, other than the RGBA interface, libtiff has mostly aimed at providing
access to TIFF files in a way as close as possible to the physical
representation.

Best regards,

-- 
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam@pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | Geospatial Programmer for Rent

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