Return-Path: <owner-tiff@olympiakos.com>
Received: from nataly.at1895.spb.edu (localhost [127.0.0.1])
	by at1895.spb.edu (8.12.4/8.12.4/Debian-4) with ESMTP id g8IJ0AD8025037
	for <dron@at1895.spb.edu>; Wed, 18 Sep 2002 23:00:10 +0400
Received: from olympiakos.com (uucp@localhost)
	by nataly.at1895.spb.edu (8.12.4/8.12.4/Debian-4) with UUCP id g8IJ0AP9025031
	for dron@at1895.spb.edu; Wed, 18 Sep 2002 23:00:10 +0400
Received: from knot.pu.ru (knot.pu.ru [193.124.85.214] (may be forged))
	by wg.pu.ru (8.9.1a/8.9.1) with ESMTP id SAA29848
	for <dron@at1895.spb.edu>; Wed, 18 Sep 2002 18:57:45 GMT
Received: from gate7.olympiakos.com (sdsl-64-32-199-150.dsl.iad.megapath.net [64.32.199.150])
	by knot.pu.ru (8.9.3/8.9.0) with ESMTP id WAA81800
	for <dron@at1895.spb.edu>; Wed, 18 Sep 2002 22:57:44 +0400 (MSD)
Received: from localhost (daemon@localhost)
	by gate7.olympiakos.com (8.9.3/8.9.3) with SMTP id OAA23905;
	Wed, 18 Sep 2002 14:56:07 -0400
Received: by gate7.olympiakos.com (bulk_mailer v1.9); Wed, 18 Sep 2002 14:50:06 -0400
Received: (from majordom@localhost)
	by gate7.olympiakos.com (8.9.3/8.9.3) id OAA23854
	for tiff-outgoing; Wed, 18 Sep 2002 14:50:05 -0400
X-Authentication-Warning: gate7.olympiakos.com: majordom set sender to owner-tiff@olympiakos.com using -f
Received: from springfield.jci.tju.edu (springfield.jci.tju.edu [147.140.132.71])
	by gate7.olympiakos.com (8.9.3/8.9.3) with ESMTP id OAA23851
	for <tiff@olympiakos.com>; Wed, 18 Sep 2002 14:50:04 -0400
Received: from confocal (pcs2760.jci.tju.edu [10.161.156.70])
	by springfield.jci.tju.edu (8.12.2/8.12.2) with SMTP id g8IImVou032184
	for <tiff@olympiakos.com>; Wed, 18 Sep 2002 14:48:31 -0400
Message-ID: <002301c25f44$2b34f160$469ca10a@jci.tju.edu>
From: "Steven Luke" <steven.luke@mail.tju.edu>
To: <tiff@olympiakos.com>
References: <001c01c25f3c$5a93b020$469ca10a@jci.tju.edu>
Subject: Re: Reading 16bits from a gray scale image
Date: Wed, 18 Sep 2002 14:49:49 -0400
MIME-Version: 1.0
Content-Type: multipart/alternative;
	boundary="----=_NextPart_000_0020_01C25F22.A38319C0"
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 5.50.4807.1700
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4807.1700
X-Virus-Scanned: by amavisd-milter (http://amavis.org/)
Sender: owner-tiff@olympiakos.com
Precedence: bulk
Status: RO
Content-Length: 3012
Lines: 80

This is a multi-part message in MIME format.

------=_NextPart_000_0020_01C25F22.A38319C0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Let me clarify my last email, I am not sure it was so clear what I =
needed to do:

>>How can I turn the 8bit or 32bit data into 16bits?

Meant: How can I use this 8bit or 32bit data to reconstruct the origenal =
16bit value?

>>Tried only shifting the pixels by 4 in line [9] since the data was =
actually acquired in 12 bits then stored as 16, but I got the same =
results.

I am displaying the image in 8bits so the final number needs to be only =
8bits, that is why I shifted the pixels the opposite direction at the =
end.  I am not sure if I am doing this step correct either.  I was =
thinking of dividing by 257 but am unsure of the rounding process and =
think that this is probably just as good because it is easier.

Thanks again.

steven Luke

------=_NextPart_000_0020_01C25F22.A38319C0
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 5.50.4807.2300" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Let me clarify my last email, I am not =
sure it was=20
so clear what I needed to do:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>&gt;&gt;How can I turn the 8bit or =
32bit data into=20
16bits?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Meant: How can I use this 8bit or 32bit =
data to=20
reconstruct the origenal 16bit value?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>&gt;&gt;Tried&nbsp;only shifting the =
pixels by 4 in=20
line&nbsp;[9]&nbsp;since the data was actually acquired in 12 bits then =
stored=20
as 16, but I got the same results.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I am displaying the image in 8bits so =
the final=20
number needs to be only 8bits, that is why I shifted the pixels the =
opposite=20
direction at the end.&nbsp; I am not sure if I am doing this step =
correct=20
either.&nbsp; I was thinking of dividing by 257 but am unsure of the =
rounding=20
process and think that this is probably just as good because it is=20
easier.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Thanks again.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>steven Luke</FONT></DIV></BODY></HTML>

------=_NextPart_000_0020_01C25F22.A38319C0--


To subscribe or unsubscribe email tiff-request@olympiakos.com with subscribe
or unsubscribe in the email body.  Libtiff home page: http://www.libtiff.org

