Return-Path: <tiff-bounces@lists.maptools.org>
X-Original-To: info@awaresystems.be
Delivered-To: info@awaresystems.be
Received: from mx-k.b-one.net (mx-k.one.com [91.198.169.58])
	by mail9.b-one.net (Postfix) with ESMTP id 5630C40014C
	for <info@awaresystems.be>; Sun, 22 Aug 2010 03:11:43 +0200 (CEST)
Received: by mx-k.b-one.net (Postfix, from userid 106)
	id 4C5C6BE81B; Sun, 22 Aug 2010 03:11:43 +0200 (CEST)
X-Virus-Scanned: by one.com
X-Spam-Flag: NO
X-Spam-Score: 0
X-Spam-Level: 
X-Spam-Status: No, score=0 tagged_above=0 required=4 tests=[none]
X-Greylist: domain auto-whitelisted by SQLgrey-1.7.4
Received: from lists.maptools.org (lists.maptools.org [65.39.174.144]) by
 mx-k.b-one.net (Postfix) with ESMTP id ADE1BBE81B for <info@awaresystems.be>;
 Sun, 22 Aug 2010 03:11:42 +0200 (CEST)
Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by
 lists.maptools.org (Postfix) with ESMTP id B081A1D0E5255; Sat, 21 Aug 2010
 20:10:22 -0500 (EST)
Received: from mail-ew0-f44.google.com (mail-ew0-f44.google.com
 [209.85.215.44]) by lists.maptools.org (Postfix) with ESMTP id 8616D1D0E5249
 for <tiff@lists.maptools.org>; Sat, 21 Aug 2010 20:07:36 -0500 (EST)
Received: by ewy22 with SMTP id 22so2690764ewy.3 for
 <tiff@lists.maptools.org>; Sat, 21 Aug 2010 18:07:35 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.213.112.197 with SMTP id x5mr2887839ebp.96.1282439255204;
 Sat, 21 Aug 2010 18:07:35 -0700 (PDT)
Received: by 10.14.124.13 with HTTP; Sat, 21 Aug 2010 18:07:35 -0700 (PDT)
In-Reply-To: <AANLkTimaQMrvwDaHsdtriDkfGFQH4c320mzn_3aFJpO3@mail.gmail.com>
References: <AANLkTimaQMrvwDaHsdtriDkfGFQH4c320mzn_3aFJpO3@mail.gmail.com>
Date: Sat, 21 Aug 2010 21:07:35 -0400
Message-ID: <AANLkTindDeX+OH7fPU=6Tz3p9YYTxzdBsgJU+4jrXphG@mail.gmail.com>
From: Olivier Paquet <olivier.paquet@gmail.com>
To: oguz ahsen <oahsen@gmail.com>
Cc: tiff@lists.maptools.org
Subject: Re: [Tiff] how to open a 16bit tiff file
X-BeenThere: tiff@lists.maptools.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: TIFF and libtiff discussion <tiff.lists.maptools.org>
List-Unsubscribe: <http://lists.maptools.org/mailman/listinfo/tiff>,
 <mailto:tiff-request@lists.maptools.org?subject=unsubscribe>
List-Archive: <http://lists.maptools.org/mailman/private/tiff>
List-Post: <mailto:tiff@lists.maptools.org>
List-Help: <mailto:tiff-request@lists.maptools.org?subject=help>
List-Subscribe: <http://lists.maptools.org/mailman/listinfo/tiff>,
 <mailto:tiff-request@lists.maptools.org?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: tiff-bounces@lists.maptools.org
Errors-To: tiff-bounces@lists.maptools.org

On Mon, Aug 16, 2010 at 10:12 PM, oguz ahsen <oahsen@gmail.com> wrote:
> Dear all,
>
> I am trying to open a tiff file having its pixels as 16bit values. However,
> when I use the "TIFFReadRGBAImage" function to get the image, it converts
> the values automatically to 8bit. What can I do get the pixels in their
> original 16bit values?

You might have to use a different API, such as TIFFReadScanline. Or
TIFFReadEncodedStrip / TIFFReadTile. I believe all three will return
the 16 bit values.

Olivier
_______________________________________________
Tiff mailing list: Tiff@lists.maptools.org
http://lists.maptools.org/mailman/listinfo/tiff
http://www.remotesensing.org/libtiff/
