Return-Path: <tiff-bounces@lists.maptools.org>
X-Original-To: info@awaresystems.be
Delivered-To: info@awaresystems.be
Received: from mx-s.b-one.net (mx-s.one.com [91.198.169.250])
	by mail9.b-one.net (Postfix) with ESMTP id C578E400160
	for <info@awaresystems.be>; Sat, 25 Jun 2011 01:14:49 +0200 (CEST)
Received: by mx-s.b-one.net (Postfix, from userid 106)
	id B65EC15A3805; Sat, 25 Jun 2011 01:14:20 +0200 (CEST)
X-Virus-Scanned: by one.com
X-Amavis-Alert: BAD HEADER SECTION, Duplicate header field: "MIME-Version"
X-Greylist: domain auto-whitelisted by SQLgrey-1.7.4
Received: from lists.maptools.org (lists.maptools.org [65.39.174.144]) by
 mx-s.b-one.net (Postfix) with ESMTP id 113154F74EE for
 <info@awaresystems.be>; Sat, 25 Jun 2011 01:14:19 +0200 (CEST)
Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by
 lists.maptools.org (Postfix) with ESMTP id 6DEE486FA7; Fri, 24 Jun 2011
 18:13:07 -0500 (EST)
Received: from mail-yw0-f44.google.com (mail-yw0-f44.google.com
 [209.85.213.44]) by lists.maptools.org (Postfix) with ESMTPS id 51C0D86F54
 for <tiff@lists.maptools.org>; Fri, 24 Jun 2011 17:50:48 -0500 (EST)
Received: by ywp31 with SMTP id 31so1423237ywp.3 for
 <tiff@lists.maptools.org>; Fri, 24 Jun 2011 15:50:47 -0700 (PDT)
Received: by 10.236.76.234 with SMTP id b70mr6137749yhe.185.1308955847307;
 Fri, 24 Jun 2011 15:50:47 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.236.95.146 with HTTP; Fri, 24 Jun 2011 15:50:27 -0700 (PDT)
In-Reply-To: <alpine.GSO.2.01.1106241641150.1344@freddy.simplesystems.org>
References: <BANLkTim=Kj1_3=2cT3yXjyqf9OVz2dkzkQ@mail.gmail.com>
 <alpine.GSO.2.01.1106241641150.1344@freddy.simplesystems.org>
From: Leandro Bugnon <l.bugnon@gmail.com>
Date: Fri, 24 Jun 2011 19:50:27 -0300
Message-ID: <BANLkTinCTuF1u34VhKaWS8oTBFHNtT=cQg@mail.gmail.com>
To: Bob Friesenhahn <bfriesen@simple.dallas.tx.us>, 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>
Content-Type: multipart/mixed; boundary="===============1473200375=="
Mime-version: 1.0
Sender: tiff-bounces@lists.maptools.org
Errors-To: tiff-bounces@lists.maptools.org

--===============1473200375==
Content-Type: multipart/alternative; boundary=20cf300fafe14e2f9904a67d0815

--20cf300fafe14e2f9904a67d0815
Content-Type: text/plain; charset=ISO-8859-1

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.

2011/6/24 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>

> On Fri, 24 Jun 2011, Leandro Bugnon wrote:
>
>  Hi,
>> I'm getting a 14bit image from a CCD cam, and save it in a 16bit. The
>> problem is that, if I take only 2 gray
>> values (greater than zero and less than 2^14), the viewers that I try
>> (imageJ and irfanview) take them as
>> zero and max valuo (black and white), they don't show the real color. How
>> can I fix it? I've tryed the next
>> tags:
>>
>> The values are correctly saved, but it always show a full black and full
>> white value when there isn't any
>> zero or 2^16 value.
>>
>
> I am not immediately seeing a problem with your tags.  Perhaps the pixel
> values are wrong, or perhaps this is a problem with these viewers.
>
> Are you able to post a sample TIFF file somewhere so we can download
> it and see how it is constructed?
>
> Bob
> --
> Bob Friesenhahn
> bfriesen@simple.dallas.tx.us, http://www.simplesystems.org/**
> users/bfriesen/ <http://www.simplesystems.org/users/bfriesen/>
> GraphicsMagick Maintainer,    http://www.GraphicsMagick.org/




-- 

Leandro

--20cf300fafe14e2f9904a67d0815
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

Thanks for the quick answer. Here is a test image=A0<span class=3D"Apple-st=
yle-span" style=3D"font-family: Arial, Helvetica, sans-serif; "><ul class=
=3D"items" id=3D"complete" style=3D"margin-top: 0px; margin-right: 15px; ma=
rgin-bottom: 0px; margin-left: 15px; padding-left: 0px; list-style-type: no=
ne; list-style-position: initial; list-style-image: initial; padding-top: 0=
px; padding-right: 0px; padding-bottom: 0px; ">

<li class=3D"odd" style=3D"margin-left: 0px; background-image: none; backgr=
ound-attachment: initial; background-origin: initial; background-clip: init=
ial; background-color: initial; border-top-width: 0px; border-top-style: in=
itial; border-top-color: initial; border-bottom-width: 1px; border-bottom-s=
tyle: solid; border-bottom-color: rgb(238, 238, 238); list-style-type: none=
; list-style-position: initial; list-style-image: initial; margin-top: 0px;=
 margin-right: 0px; margin-bottom: 0px; padding-top: 10px; padding-right: 1=
0px; padding-bottom: 10px; padding-left: 10px; background-position: initial=
 initial; background-repeat: initial initial; ">

<div class=3D"metadata" style=3D"font-size: 0.9em; color: rgb(102, 102, 102=
); "><a href=3D"http://www.filefactory.com/file/cc0b359/n/test1.tif">http:/=
/www.filefactory.com/file/cc0b359/n/test1.tif</a></div></li></ul></span><di=
v>

<br></div><div>Another thing that cannot understand is that TIFFTAG_SMINSAM=
PLEVALUE /=A0TIFFTAG_SMAXSAMPLEVALUE remains in zero value but I changed th=
at in the code.<br><br><div class=3D"gmail_quote">2011/6/24 Bob Friesenhahn=
 <span dir=3D"ltr">&lt;<a href=3D"mailto:bfriesen@simple.dallas.tx.us">bfri=
esen@simple.dallas.tx.us</a>&gt;</span><br>

<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex;"><div class=3D"im">On Fri, 24 Jun 2011, Lean=
dro Bugnon wrote:<br>
<br>
</div><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-l=
eft:1px #ccc solid;padding-left:1ex"><div class=3D"im">
Hi,<br>
I&#39;m getting a 14bit image from a CCD cam, and save it in a 16bit. The p=
roblem is that, if I take only 2 gray<br>
values (greater than zero and less than 2^14), the viewers that I try (imag=
eJ and irfanview) take them as<br>
zero and max valuo (black and white), they don&#39;t show the real color. H=
ow can I fix it? I&#39;ve tryed the next<br>
tags:<br>
=A0<br></div><div class=3D"im">
The values are correctly saved, but it always show a full black and full wh=
ite value when there isn&#39;t any<br>
zero or 2^16 value.=A0<br>
</div></blockquote>
<br>
I am not immediately seeing a problem with your tags. =A0Perhaps the pixel =
values are wrong, or perhaps this is a problem with these viewers.<br>
<br>
Are you able to post a sample TIFF file somewhere so we can download<br>
it and see how it is constructed?<br>
<br>
Bob<br><font color=3D"#888888">
-- <br>
Bob Friesenhahn<br>
<a href=3D"mailto:bfriesen@simple.dallas.tx.us" target=3D"_blank">bfriesen@=
simple.dallas.tx.us</a>, <a href=3D"http://www.simplesystems.org/users/bfri=
esen/" target=3D"_blank">http://www.simplesystems.org/<u></u>users/bfriesen=
/</a><br>


GraphicsMagick Maintainer, =A0 =A0<a href=3D"http://www.GraphicsMagick.org/=
" target=3D"_blank">http://www.GraphicsMagick.org/</a></font></blockquote><=
/div><br><br clear=3D"all"><br>-- <br><br>Leandro <br>
</div>

--20cf300fafe14e2f9904a67d0815--

--===============1473200375==
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/
--===============1473200375==--
