Return-Path: <tiff-bounces@lists.maptools.org>
X-Original-To: info@awaresystems.be
Delivered-To: info@awaresystems.be
Received: from mx-m.b-one.net (mx-m.one.com [91.198.169.60])
	by mail9.b-one.net (Postfix) with ESMTP id 6868D40013D
	for <info@awaresystems.be>; Tue,  4 Aug 2009 18:26:06 +0200 (CEST)
X-Virus-Scanned: by one.com
X-Spam-Score: 0.001
X-Spam-Level: 
X-Spam-Status: No, score=0.001 tagged_above=0 required=6
	tests=[HTML_MESSAGE=0.001]
X-Greylist: domain auto-whitelisted by SQLgrey-1.7.4
Received: from lists.maptools.org (lists.maptools.org [65.39.174.144])
	by mx-m.b-one.net (Postfix) with ESMTP id AAE7218AE88E
	for <info@awaresystems.be>; Tue,  4 Aug 2009 18:26:04 +0200 (CEST)
Received: from localhost.localdomain (localhost.localdomain [127.0.0.1])
	by lists.maptools.org (Postfix) with ESMTP id D62071D54606F;
	Tue,  4 Aug 2009 11:25:16 -0500 (EST)
Received: from g5t0007.atlanta.hp.com (g5t0007.atlanta.hp.com [15.192.0.44])
	by lists.maptools.org (Postfix) with ESMTPS id DB2561D546062
	for <tiff@lists.maptools.org>; Tue,  4 Aug 2009 11:22:46 -0500 (EST)
Received: from G5W0603.americas.hpqcorp.net (g5w0603.americas.hpqcorp.net
	[16.228.9.186]) (using TLSv1 with cipher RC4-MD5 (128/128 bits))
	(No client certificate requested)
	by g5t0007.atlanta.hp.com (Postfix) with ESMTPS id C7F5C14428;
	Tue,  4 Aug 2009 16:22:45 +0000 (UTC)
Received: from G3W0058.americas.hpqcorp.net (16.232.1.3) by
	G5W0603.americas.hpqcorp.net (16.228.9.186) with Microsoft SMTP Server
	(TLS) id 8.1.375.2; Tue, 4 Aug 2009 16:22:11 +0000
Received: from GVW1096EXB.americas.hpqcorp.net ([16.234.97.240]) by
	G3W0058.americas.hpqcorp.net ([16.232.1.3]) with mapi; Tue, 4 Aug 2009
	16:22:10 +0000
From: "Persons, Michael" <michael.persons@hp.com>
To: Joe Tracy <JTracy@akimn.com>, Chris Cox <ccox@adobe.com>, TIFF
	<tiff@lists.maptools.org>
Date: Tue, 4 Aug 2009 16:22:32 +0000
Thread-Topic: [Tiff] .raw extension
Thread-Index: AcoUZHWxgMi+QMENTNyfiSRI7iL/IwAE22TeACVsObAABHYlAA==
Message-ID: <A478CDAB43B6A24184D73AD767FB5AB46791E176B2@GVW1096EXB.americas.hpqcorp.net>
References: <37CE7D132DD3F449B03793282D14D4C22FF901@AKI-SERVER.AKI.local>
	<C69C94B1.81FE1%ccox@adobe.com>
	<37CE7D132DD3F449B03793282D14D4C22FF912@AKI-SERVER.AKI.local>
In-Reply-To: <37CE7D132DD3F449B03793282D14D4C22FF912@AKI-SERVER.AKI.local>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
acceptlanguage: en-US
MIME-Version: 1.0
Subject: Re: [Tiff] .raw extension
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="===============0351406314=="
Mime-version: 1.0
Sender: tiff-bounces@lists.maptools.org
Errors-To: tiff-bounces@lists.maptools.org

--===============0351406314==
Content-Language: en-US
Content-Type: multipart/alternative;
	boundary="_000_A478CDAB43B6A24184D73AD767FB5AB46791E176B2GVW1096EXBame_"

--_000_A478CDAB43B6A24184D73AD767FB5AB46791E176B2GVW1096EXBame_
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

Just to clarify Joe, the ChannelInputStream class does not exist in the tif=
 lib, it is just an abstraction I created to represent different channel so=
urces (e.g. Tiff versus JPEG versus raw). In your case you essentially woul=
d just read the file (as that would be the "channel" data) and apply the pr=
eviously sent algorithm (although the algorithm could be simplified quite a=
 bit considering you only have 1 channel.

Michael JP Persons

________________________________
From: tiff-bounces@lists.maptools.org [mailto:tiff-bounces@lists.maptools.o=
rg] On Behalf Of Joe Tracy
Sent: Tuesday, August 04, 2009 7:13 AM
To: Chris Cox; TIFF
Subject: Re: [Tiff] .raw extension

No,  they are raw uncompressed 16 bit tiff files without a header.  I recei=
ved a suggestion on using the ChannelInputStream class so I am going to giv=
e this a try.

Thanks,
joe
________________________________
From: Chris Cox [mailto:ccox@adobe.com]
Sent: Monday, August 03, 2009 3:21 PM
To: Joe Tracy; TIFF
Subject: Re: [Tiff] .raw extension

Are these RAW files from a digital camera?  If so, LibTIFF won't be able to=
 do much with them --  because RAW files are not simple pixels, they are a =
record of the sensor data and need to be demosaic'd before they become usef=
ul images.  Take a look at dcraw.

Chris



On 8/3/09 11:01 AM, "Joe Tracy" <JTracy@akimn.com> wrote:
Has anyone used libtiff to read in a .raw file?  The files I have are raw, =
uncompressed tiff images (16 bit).  I would like to read them in, write a h=
eader and create a tiff file of them.

Thanks,
Joe

--_000_A478CDAB43B6A24184D73AD767FB5AB46791E176B2GVW1096EXBame_
Content-Type: text/html; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<html xmlns:v=3D"urn:schemas-microsoft-com:vml" xmlns:o=3D"urn:schemas-micr=
osoft-com:office:office" xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns=3D"http://www.w3.org/TR/REC-html40">

<head>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; charset=3Dus-ascii"=
>
<meta name=3DGenerator content=3D"Microsoft Word 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]-->
<title>Re: [Tiff] .raw extension</title>
<style>
<!--
 /* Font Definitions */
 @font-face
	{font-family:Tahoma;
	panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
	{font-family:"Myriad Pro";
	panose-1:2 11 5 3 3 4 3 2 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0in;
	margin-bottom:.0001pt;
	font-size:12.0pt;
	font-family:"Times New Roman";}
a:link, span.MsoHyperlink
	{color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{color:blue;
	text-decoration:underline;}
span.EmailStyle17
	{mso-style-type:personal;
	font-family:Arial;
	color:navy;}
span.EmailStyle18
	{mso-style-type:personal-reply;
	font-family:Arial;
	color:navy;}
@page Section1
	{size:8.5in 11.0in;
	margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
	{page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext=3D"edit">
  <o:idmap v:ext=3D"edit" data=3D"1" />
 </o:shapelayout></xml><![endif]-->
</head>

<body lang=3DEN-US link=3Dblue vlink=3Dblue>

<div class=3DSection1>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span style=
=3D'font-size:
10.0pt;font-family:Arial;color:navy'>Just to clarify Joe, the
ChannelInputStream class does not exist in the tif lib, it is just an
abstraction I created to represent different channel sources (e.g. Tiff ver=
sus
JPEG versus raw). In your case you essentially would just read the file (as
that would be the &#8220;channel&#8221; data) and apply the previously sent=
 algorithm
(although the algorithm could be simplified quite a bit considering you onl=
y
have 1 channel.<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span style=
=3D'font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<div>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span style=
=3D'font-size:
10.0pt;font-family:Arial;color:navy'>Michael JP Persons</span></font><font
color=3Dnavy><span style=3D'color:navy'><o:p></o:p></span></font></p>

</div>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span style=
=3D'font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<div>

<div class=3DMsoNormal align=3Dcenter style=3D'text-align:center'><font siz=
e=3D3
face=3D"Times New Roman"><span style=3D'font-size:12.0pt'>

<hr size=3D2 width=3D"100%" align=3Dcenter tabindex=3D-1>

</span></font></div>

<p class=3DMsoNormal><b><font size=3D2 face=3DTahoma><span style=3D'font-si=
ze:10.0pt;
font-family:Tahoma;font-weight:bold'>From:</span></font></b><font size=3D2
face=3DTahoma><span style=3D'font-size:10.0pt;font-family:Tahoma'>
tiff-bounces@lists.maptools.org [mailto:tiff-bounces@lists.maptools.org] <b=
><span
style=3D'font-weight:bold'>On Behalf Of </span></b>Joe Tracy<br>
<b><span style=3D'font-weight:bold'>Sent:</span></b> Tuesday, August 04, 20=
09
7:13 AM<br>
<b><span style=3D'font-weight:bold'>To:</span></b> Chris Cox; TIFF<br>
<b><span style=3D'font-weight:bold'>Subject:</span></b> Re: [Tiff] .raw ext=
ension</span></font><o:p></o:p></p>

</div>

<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span style=3D=
'font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span style=
=3D'font-size:
10.0pt;font-family:Arial;color:navy'>No,&nbsp; they are raw uncompressed 16=
 bit
tiff files without a header.&nbsp; I received a suggestion on using the
ChannelInputStream class so I am going to give this a try.<o:p></o:p></span=
></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span style=
=3D'font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span style=
=3D'font-size:
10.0pt;font-family:Arial;color:navy'>Thanks,<br>
joe<o:p></o:p></span></font></p>

<div>

<div class=3DMsoNormal align=3Dcenter style=3D'text-align:center'><font siz=
e=3D3
face=3D"Times New Roman"><span style=3D'font-size:12.0pt'>

<hr size=3D2 width=3D"100%" align=3Dcenter tabindex=3D-1>

</span></font></div>

<p class=3DMsoNormal><b><font size=3D2 face=3DTahoma><span style=3D'font-si=
ze:10.0pt;
font-family:Tahoma;font-weight:bold'>From:</span></font></b><font size=3D2
face=3DTahoma><span style=3D'font-size:10.0pt;font-family:Tahoma'> Chris Co=
x
[mailto:ccox@adobe.com] <br>
<b><span style=3D'font-weight:bold'>Sent:</span></b> Monday, August 03, 200=
9 3:21
PM<br>
<b><span style=3D'font-weight:bold'>To:</span></b> Joe Tracy; TIFF<br>
<b><span style=3D'font-weight:bold'>Subject:</span></b> Re: [Tiff] .raw ext=
ension</span></font><o:p></o:p></p>

</div>

<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span style=3D=
'font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal style=3D'margin-bottom:12.0pt'><font size=3D2 face=3D"=
Myriad Pro"><span
style=3D'font-size:10.0pt;font-family:"Myriad Pro"'>Are these RAW files fro=
m a
digital camera? &nbsp;If so, LibTIFF won&#8217;t be able to do much with th=
em -- &nbsp;because
RAW files are not simple pixels, they are a record of the sensor data and n=
eed
to be demosaic&#8217;d before they become useful images. &nbsp;Take a look =
at dcraw.<br>
<br>
Chris<br>
<br>
<br>
<br>
On 8/3/09 11:01 AM, &quot;Joe Tracy&quot; &lt;<a href=3D"JTracy@akimn.com">=
JTracy@akimn.com</a>&gt;
wrote:</span></font><o:p></o:p></p>

<p class=3DMsoNormal style=3D'margin-bottom:12.0pt'><font size=3D2 face=3DA=
rial><span
style=3D'font-size:10.0pt;font-family:Arial'>Has anyone used libtiff to rea=
d in a
.raw file? &nbsp;The files I have are raw, uncompressed tiff images (16 bit=
).
&nbsp;I would like to read them in, write a header and create a tiff file o=
f
them.<br>
&nbsp;<br>
Thanks,<br>
Joe</span></font><o:p></o:p></p>

</div>

</body>

</html>

--_000_A478CDAB43B6A24184D73AD767FB5AB46791E176B2GVW1096EXBame_--

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