Return-Path: <tiff-bounces@lists.maptools.org>
X-Original-To: info@awaresystems.be
Delivered-To: info@awaresystems.be
Received: from mx-h.b-one.net (mx-h.one.com [91.198.169.55])
	by mail9.b-one.net (Postfix) with ESMTP id 82ECB400160
	for <info@awaresystems.be>; Sat, 25 Jun 2011 02:15:25 +0200 (CEST)
Received: by mx-h.b-one.net (Postfix, from userid 106)
	id 79AFC10E6944; Sat, 25 Jun 2011 02:15:25 +0200 (CEST)
X-Virus-Scanned: by one.com
X-Greylist: domain auto-whitelisted by SQLgrey-1.7.4
Received: from lists.maptools.org (lists.maptools.org [65.39.174.144]) by
 mx-h.b-one.net (Postfix) with ESMTP id B84B410E6944 for
 <info@awaresystems.be>; Sat, 25 Jun 2011 02:15:24 +0200 (CEST)
Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by
 lists.maptools.org (Postfix) with ESMTP id A1C4086FA8; Fri, 24 Jun 2011
 19:14:13 -0500 (EST)
Received: from blade.simplesystems.org (blade.simplesystems.org
 [65.66.246.74]) by lists.maptools.org (Postfix) with ESMTPS id 10E0D86EA2 for
 <tiff@lists.maptools.org>; Fri, 24 Jun 2011 18:45:07 -0500 (EST)
Received: from freddy.simplesystems.org (freddy.simplesystems.org
 [65.66.246.65]) by blade.simplesystems.org (8.14.4+Sun/8.14.4) with ESMTP id
 p5ONj4oS027042; Fri, 24 Jun 2011 18:45:04 -0500 (CDT)
Date: Fri, 24 Jun 2011 18:45:04 -0500 (CDT)
From: Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
X-X-Sender: bfriesen@freddy.simplesystems.org
To: Leandro Bugnon <l.bugnon@gmail.com>
In-Reply-To: <BANLkTinCTuF1u34VhKaWS8oTBFHNtT=cQg@mail.gmail.com>
Message-ID: <alpine.GSO.2.01.1106241837160.25378@freddy.simplesystems.org>
References: <BANLkTim=Kj1_3=2cT3yXjyqf9OVz2dkzkQ@mail.gmail.com>
 <alpine.GSO.2.01.1106241641150.1344@freddy.simplesystems.org>
 <BANLkTinCTuF1u34VhKaWS8oTBFHNtT=cQg@mail.gmail.com>
User-Agent: Alpine 2.01 (GSO 1266 2009-07-14)
MIME-Version: 1.0
Content-Type: MULTIPART/MIXED; BOUNDARY="-559023410-1236021886-1308959104=:25378"
X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.2
 (blade.simplesystems.org [65.66.246.90]); Fri, 24 Jun 2011 18:45:04 -0500
 (CDT)
Cc: tiff@lists.maptools.org
Subject: Re: [Tiff] 16-bit image
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>
Sender: tiff-bounces@lists.maptools.org
Errors-To: tiff-bounces@lists.maptools.org

  This message is in MIME format.  The first part should be readable text,
  while the remaining parts are likely unreadable without MIME-aware tools.

---559023410-1236021886-1308959104=:25378
Content-Type: TEXT/PLAIN; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 8BIT

On Fri, 24 Jun 2011, Leandro Bugnon wrote:

> Thanks for the quick answer. Here is a test image 
>  *  http://www.filefactory.com/file/cc0b359/n/test1.tif
> 
> Another thing that cannot understand is that TIFFTAG_SMINSAMPLEVALUE / TIFFTAG_SMAXSAMPLEVALUE remains in zero
> value but I changed that in the code.

Yes, I see that they are zero.

GraphicsMagick says that you have two image frames:

   Type: grayscale
   Depth: 15 bits-per-pixel component
   Channel Depths:
     Gray:     15 bits
   Channel Statistics:
     Gray:
       Minimum:                   500.00 (0.0076)
       Maximum:                   700.00 (0.0107)
       Mean:                      583.11 (0.0089)
       Standard Deviation:         84.91 (0.0013)

and

   Type: grayscale
   Depth: 14 bits-per-pixel component
   Channel Depths:
     Gray:     14 bits
   Channel Statistics:
     Gray:
       Minimum:                  1000.00 (0.0153)
       Maximum:                  1400.00 (0.0214)
       Mean:                     1166.21 (0.0178)
       Standard Deviation:        169.82 (0.0026)

From this it is clear that the images are very dark and would appear 
black on a typical 8-bit display.  However, if I normalize the image 
your test pattern is revealed.

You say that the CCD is 14 bits, but the numeric range is within 11 
bits (2^11 = 2048).  The values are clearly not scaled up.

Bob
-- 
Bob Friesenhahn
bfriesen@simple.dallas.tx.us, http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer,    http://www.GraphicsMagick.org/
---559023410-1236021886-1308959104=:25378
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Tiff mailing list: Tiff@lists.maptools.org
http://lists.maptools.org/mailman/listinfo/tiff
http://www.remotesensing.org/libtiff/
---559023410-1236021886-1308959104=:25378--
