Message-ID: <3A773305.3E80E897@pobox.com>
Date: Wed, 31 Jan 2001 02:00:00
From: Frank Warmerdam
Subject: Re: 16 bit TIFF help

Krishna,

I frequently works with 16bit, 32bit, floating point, and even complex
TIFF files.  They can work fine through libtiff, though some of the
tools aren't up to handling them.

The byte order of the image data will match the byte order of the rest of
the TIFF file, and the library will take care of reordering it into local
machine order on a read.

I don't know that it is possible to use palettes with 16bit TIFF files.
In theory it might be possible, but the palette would have to have 64K
entries, and I am not sure that libtiff will even support it.

I don't have any conveniently stripped down code to show how to do work with
16bit files, but you can find a sample 16bit file at:

 ftp://ftp.remotesensing.org/pub/geotiff/samples/usgs/m30dem.tif

Best regards,

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