Return-Path: <tiff-bounces@lists.maptools.org>
X-Original-To: info@awaresystems.be
Delivered-To: info@awaresystems.be
Received: from mx-q.b-one.net (mx-q.one.com [91.198.169.248])
	by mail9.b-one.net (Postfix) with ESMTP id A484640080A
	for <info@awaresystems.be>; Fri,  5 Mar 2010 15:44:41 +0100 (CET)
Received: by mx-q.b-one.net (Postfix, from userid 106)
	id 9CB828BF654; Fri,  5 Mar 2010 15:44:41 +0100 (CET)
X-Virus-Scanned: by one.com
X-Spam-Score: 3.386
X-Spam-Level: ***
X-Spam-Status: No, score=3.386 tagged_above=0 required=4
 tests=[FH_DATE_PAST_20XX=3.384, HTML_MESSAGE=0.001, MIME_HTML_MOSTLY=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-q.b-one.net (Postfix) with ESMTP id 33E1C8BF654 for
 <info@awaresystems.be>; Fri,  5 Mar 2010 15:44:31 +0100 (CET)
Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by
 lists.maptools.org (Postfix) with ESMTP id A094B1CF69C98; Fri,  5 Mar 2010
 09:43:27 -0500 (EST)
Received: from mb1i1.ns.pitt.edu (mb1i1mx.ns.pitt.edu [136.142.11.141]) by
 lists.maptools.org (Postfix) with ESMTP id 220C81D4D2EF4 for
 <tiff@lists.maptools.org>; Fri,  5 Mar 2010 08:57:35 -0500 (EST)
Received: from kim9t018.birc.pitt.edu (kim9t018.birc.pitt.edu
 [136.142.36.224]) by pitt.edu (PMDF V6.3-x11 #31505) with ESMTPSA id
 <0KYT00I3ZARZ67@mb1i1.ns.pitt.edu> for tiff@lists.maptools.org; Fri, 05 Mar
 2010 08:57:35 -0500 (EST)
Date: Fri, 05 Mar 2010 08:57:34 -0500
From: Shafiq Abedin <sha33@pitt.edu>
In-reply-to:
 <3D8D0D3C732F654A892809FFB1B9902CC9210E9563@EXCHANGE-AH.ad.mathworks.com>
To: Ashish Uthama <Ashish.Uthama@mathworks.com>
Message-id: <EEFCCAAF-5EC4-4CBD-8E7D-F1FBDC0245CC@pitt.edu>
MIME-version: 1.0 (Apple Message framework v1077)
X-Mailer: Apple Mail (2.1077)
References: <923561C3-79C2-434C-A091-C59CB3B9407A@pitt.edu>
 <3D8D0D3C732F654A892809FFB1B9902CC9210E9563@EXCHANGE-AH.ad.mathworks.com>
Cc: "tiff@lists.maptools.org" <tiff@lists.maptools.org>
Subject: Re: [Tiff] Problem with multipage .stk 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: multipart/mixed; boundary="===============0073344534=="
Mime-version: 1.0
Sender: tiff-bounces@lists.maptools.org
Errors-To: tiff-bounces@lists.maptools.org


--===============0073344534==
Content-type: multipart/alternative; boundary=Apple-Mail-1--420037436


--Apple-Mail-1--420037436
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=us-ascii

Great source! I apologize if I sound arrogant but I am trying to =
accomplish this with libtiff and c. We already process our data with =
Matlab. Thank you though :)=20


Shafiq Abedin
sha33@pitt.edu




On Mar 5, 2010, at 7:46 AM, Ashish Uthama wrote:

> Information in this thread might be useful:
> http://www.mathworks.com/matlabcentral/newsreader/view_thread/265330
> =20
> points to: http://support.meta.moleculardevices.com/docs/t10243.pdf =
and ftp://ftp.meta.moleculardevices.com/support/stack/STK.doc
> =20
> =20
> =20
> From: tiff-bounces@lists.maptools.org =
[mailto:tiff-bounces@lists.maptools.org] On Behalf Of Shafiq Abedin
> Sent: Thursday, March 04, 2010 10:37 PM
> To: tiff@lists.maptools.org
> Subject: [Tiff] Problem with multipage .stk tiff file
> =20
> Hello All:
> =20
> I am writing this post after pulling my hair multiple times (I am bald =
now!) and doing many many google searches (all the webpages related to =
libtiff is now imprinted in my brain). I have failed to find a post on =
this mailing list that solves the problem or anywhere for that matter. I =
hate to be repetitive but I have the same problem described in this post =
(http://www.asmail.be/msg0054982856.html). Solution given here is too =
vague for me to pick up on (is it really like a linked list?). I didn't =
find any post related to reading the .stk file (I wish I could give you =
a sample right now but they are extremely big - 2gb ). I can read the =
first in the stack but cant go beyond that. This particular image has =
7400 slices but whenever i do a tiffdump, this is what I get:
> =20
> test.stk:
> Magic: 0x4949 <little-endian> Version: 0x2a
> Directory 0: offset 1342567917 (0x5005f5ed) next 0 (0)
> SubFileType (254) LONG (4) 1<0>
> ImageWidth (256) LONG (4) 1<348>
> ImageLength (257) LONG (4) 1<260>
> BitsPerSample (258) SHORT (3) 1<16>
> Compression (259) SHORT (3) 1<1>
> Photometric (262) SHORT (3) 1<1>
> ImageDescription (270) ASCII (2) 2545600<Acquired from Photometri ...>
> StripOffsets (273) LONG (4) 24<8 7664 15320 22976 30632 38288 45944 =
53600 61256 68912 76568 84224 91880 99536 107192 114848 122504 130160 =
137816 145472 153128 160784 168440 176096>
> SamplesPerPixel (277) SHORT (3) 1<1>
> RowsPerStrip (278) LONG (4) 1<11>
> StripByteCounts (279) LONG (4) 24<7656 7656 7656 7656 7656 7656 7656 =
7656 7656 7656 7656 7656 7656 7656 7656 7656 7656 7656 7656 7656 7656 =
7656 7656 4872>
> XResolution (282) RATIONAL (5) 1<72>
> YResolution (283) RATIONAL (5) 1<72>
> PlanarConfig (284) SHORT (3) 1<1>
> ResolutionUnit (296) SHORT (3) 1<2>
> Software (305) ASCII (2) 18<MetaMorph 7.1.7.0\0>
> DateTime (306) ASCII (2) 21<2009:09:08 17:54:57\0\0>
> Predictor (317) SHORT (3) 1<1>
> 33628 (0x835c) LONG (4) 7435<0 0 1 0 2 4095 3 0 4 1341649855 5 =
1341649863 6 1341649871 7 1341649880 8 0 9 255 11 128 12 64 ...>
> 33629 (0x835d) RATIONAL (5) 7400<0 0.0383822 0.0380645 0 0.0383822 =
0.0380645 0 0.0383821 0.0380645 0 0.0383821 0.0380645 0 0.038382 =
0.0380645 0 0.038382 0.0380645 0 0.038382 0.0380645 0 0.0383819 =
0.0380645 ...>
> 33630 (0x835e) RATIONAL (5) 7400<0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 =
0 0 0 0 0 ...>
> 33631 (0x835f) LONG (4) 7400<28 65536 0 65536 0 65536 0 65536 0 65536 =
0 65536 0 65536 0 65536 0 65536 0 65536 0 65536 0 65536 ...>
> =20
> My attempt to get the the read Strip or Tile have failed because the =
libtiff  TIFFTAG_TILEBYTECOUNTS  and TIFFTAG_STRIPBYTECOUNTS returns =
only 24. Although I can see the offset info in the dump, I dont know =
actually how to get to the next image and read (using TIFFReadScanline) =
it so that I can manipulate it. I should also mention that the directory =
count is useless here because it returns 1 . This problem might be too =
trivial for you but I need help finding a way to read these images. If =
you please provide examples, it would be most helpful. Thanks in =
advance.
> =20
> --=20
> Shafiq
>=20
> University Of Pittsburgh
> McGowan Institute for Regenerative Medicine
> _______________________________________________
> Tiff mailing list: Tiff@lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/tiff
> http://www.remotesensing.org/libtiff/


--Apple-Mail-1--420037436
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
	charset=us-ascii

<html><head><base href=3D"x-msg://2/"></head><body style=3D"word-wrap: =
break-word; -webkit-nbsp-mode: space; -webkit-line-break: =
after-white-space; ">Great source! I apologize if I sound arrogant but I =
am trying to accomplish this with libtiff and c. We already process our =
data with Matlab. Thank you though :)&nbsp;<div><br></div><div><br><div>
<span class=3D"Apple-style-span" style=3D"border-collapse: separate; =
color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; =
font-style: normal; font-variant: normal; font-weight: normal; =
letter-spacing: normal; line-height: normal; orphans: 2; text-align: =
auto; text-indent: 0px; text-transform: none; white-space: normal; =
widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; =
-webkit-border-vertical-spacing: 0px; =
-webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: =
auto; -webkit-text-stroke-width: 0; "><div><div>Shafiq =
Abedin</div><div><a =
href=3D"mailto:sha33@pitt.edu">sha33@pitt.edu</a></div><div><br></div></di=
v><br></span><br class=3D"Apple-interchange-newline">
</div>

<br><div><div>On Mar 5, 2010, at 7:46 AM, Ashish Uthama wrote:</div><br =
class=3D"Apple-interchange-newline"><blockquote type=3D"cite"><span =
class=3D"Apple-style-span" style=3D"border-collapse: separate; =
font-family: Helvetica; font-size: medium; font-style: normal; =
font-variant: normal; font-weight: normal; letter-spacing: normal; =
line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; =
white-space: normal; widows: 2; word-spacing: 0px; =
-webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: =
0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: =
auto; -webkit-text-stroke-width: 0px; "><div lang=3D"EN-US" link=3D"blue" =
vlink=3D"purple" style=3D"word-wrap: break-word; -webkit-nbsp-mode: =
space; -webkit-line-break: after-white-space; "><div =
class=3D"Section1"><div style=3D"margin-top: 0in; margin-right: 0in; =
margin-bottom: 0.0001pt; margin-left: 0in; font-size: 12pt; font-family: =
'Times New Roman', serif; "><span style=3D"font-size: 11pt; font-family: =
Calibri, sans-serif; color: rgb(31, 73, 125); ">Information in this =
thread might be useful:<o:p></o:p></span></div><div style=3D"margin-top: =
0in; margin-right: 0in; margin-bottom: 0.0001pt; margin-left: 0in; =
font-size: 12pt; font-family: 'Times New Roman', serif; "><span =
style=3D"font-size: 11pt; font-family: Calibri, sans-serif; color: =
rgb(31, 73, 125); "><a =
href=3D"http://www.mathworks.com/matlabcentral/newsreader/view_thread/2653=
30" style=3D"color: blue; text-decoration: underline; =
">http://www.mathworks.com/matlabcentral/newsreader/view_thread/265330</a>=
<o:p></o:p></span></div><div style=3D"margin-top: 0in; margin-right: =
0in; margin-bottom: 0.0001pt; margin-left: 0in; font-size: 12pt; =
font-family: 'Times New Roman', serif; "><span style=3D"font-size: 11pt; =
font-family: Calibri, sans-serif; color: rgb(31, 73, 125); =
"><o:p>&nbsp;</o:p></span></div><div style=3D"margin-top: 0in; =
margin-right: 0in; margin-bottom: 0.0001pt; margin-left: 0in; font-size: =
12pt; font-family: 'Times New Roman', serif; "><span style=3D"font-size: =
11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125); =
">points to:<span class=3D"Apple-converted-space">&nbsp;</span><a =
href=3D"http://support.meta.moleculardevices.com/docs/t10243.pdf" =
style=3D"color: blue; text-decoration: underline; =
">http://support.meta.moleculardevices.com/docs/t10243.pdf</a><span =
class=3D"Apple-converted-space">&nbsp;</span>and<span =
class=3D"Apple-converted-space">&nbsp;</span><a =
href=3D"ftp://ftp.meta.moleculardevices.com/support/stack/STK.doc" =
style=3D"color: blue; text-decoration: underline; =
">ftp://ftp.meta.moleculardevices.com/support/stack/STK.doc</a><o:p></o:p>=
</span></div><div style=3D"margin-top: 0in; margin-right: 0in; =
margin-bottom: 0.0001pt; margin-left: 0in; font-size: 12pt; font-family: =
'Times New Roman', serif; "><span style=3D"font-size: 11pt; font-family: =
Calibri, sans-serif; color: rgb(31, 73, 125); =
"><o:p>&nbsp;</o:p></span></div><div style=3D"margin-top: 0in; =
margin-right: 0in; margin-bottom: 0.0001pt; margin-left: 0in; font-size: =
12pt; font-family: 'Times New Roman', serif; "><span style=3D"font-size: =
11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125); =
">&nbsp;<o:p></o:p></span></div><div style=3D"margin-top: 0in; =
margin-right: 0in; margin-bottom: 0.0001pt; margin-left: 0in; font-size: =
12pt; font-family: 'Times New Roman', serif; "><span style=3D"font-size: =
11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125); =
"><o:p>&nbsp;</o:p></span></div><div><div style=3D"border-right-style: =
none; border-bottom-style: none; border-left-style: none; border-width: =
initial; border-color: initial; border-top-style: solid; =
border-top-color: rgb(181, 196, 223); border-top-width: 1pt; =
padding-top: 3pt; padding-right: 0in; padding-bottom: 0in; padding-left: =
0in; "><div style=3D"margin-top: 0in; margin-right: 0in; margin-bottom: =
0.0001pt; margin-left: 0in; font-size: 12pt; font-family: 'Times New =
Roman', serif; "><b><span style=3D"font-size: 10pt; font-family: Tahoma, =
sans-serif; ">From:</span></b><span style=3D"font-size: 10pt; =
font-family: Tahoma, sans-serif; "><span =
class=3D"Apple-converted-space">&nbsp;</span><a =
href=3D"mailto:tiff-bounces@lists.maptools.org" style=3D"color: blue; =
text-decoration: underline; ">tiff-bounces@lists.maptools.org</a><span =
class=3D"Apple-converted-space">&nbsp;</span>[mailto:tiff-bounces@lists.ma=
ptools.org]<span class=3D"Apple-converted-space">&nbsp;</span><b>On =
Behalf Of<span class=3D"Apple-converted-space">&nbsp;</span></b>Shafiq =
Abedin<br><b>Sent:</b><span =
class=3D"Apple-converted-space">&nbsp;</span>Thursday, March 04, 2010 =
10:37 PM<br><b>To:</b><span =
class=3D"Apple-converted-space">&nbsp;</span><a =
href=3D"mailto:tiff@lists.maptools.org" style=3D"color: blue; =
text-decoration: underline; =
">tiff@lists.maptools.org</a><br><b>Subject:</b><span =
class=3D"Apple-converted-space">&nbsp;</span>[Tiff] Problem with =
multipage .stk tiff file<o:p></o:p></span></div></div></div><div =
style=3D"margin-top: 0in; margin-right: 0in; margin-bottom: 0.0001pt; =
margin-left: 0in; font-size: 12pt; font-family: 'Times New Roman', =
serif; "><o:p>&nbsp;</o:p></div><div style=3D"margin-top: 0in; =
margin-right: 0in; margin-bottom: 0.0001pt; margin-left: 0in; font-size: =
12pt; font-family: 'Times New Roman', serif; ">Hello =
All:<o:p></o:p></div><div><div style=3D"margin-top: 0in; margin-right: =
0in; margin-bottom: 0.0001pt; margin-left: 0in; font-size: 12pt; =
font-family: 'Times New Roman', serif; =
"><o:p>&nbsp;</o:p></div></div><div><div style=3D"margin-top: 0in; =
margin-right: 0in; margin-bottom: 0.0001pt; margin-left: 0in; font-size: =
12pt; font-family: 'Times New Roman', serif; ">I am writing this post =
after pulling my hair multiple times (I am bald now!) and doing many =
many google searches (all the webpages related to libtiff is now =
imprinted in my brain). I have failed to find a post on this mailing =
list that solves the problem or anywhere for that matter. I hate to be =
repetitive but I have the same problem described in this post (<a =
href=3D"http://www.asmail.be/msg0054982856.html" style=3D"color: blue; =
text-decoration: underline; =
">http://www.asmail.be/msg0054982856.html</a>). Solution given here is =
too vague for me to pick up on (is it really like a linked list?). I =
didn't find any post related to reading the .stk file (I wish I could =
give you a sample right now but they are extremely big - 2gb ). I can =
read the first in the stack but cant go beyond that. This particular =
image has 7400 slices but whenever i do a tiffdump, this is what I =
get:<o:p></o:p></div></div><div><div style=3D"margin-top: 0in; =
margin-right: 0in; margin-bottom: 0.0001pt; margin-left: 0in; font-size: =
12pt; font-family: 'Times New Roman', serif; =
"><o:p>&nbsp;</o:p></div></div><div><div><div style=3D"margin-top: 0in; =
margin-right: 0in; margin-bottom: 0.0001pt; margin-left: 0in; font-size: =
12pt; font-family: 'Times New Roman', serif; "><span =
class=3D"apple-style-span"><span style=3D"font-size: 7.5pt; font-family: =
Courier; ">test.stk:</span></span><o:p></o:p></div></div><div><div =
style=3D"margin-top: 0in; margin-right: 0in; margin-bottom: 0.0001pt; =
margin-left: 0in; font-size: 12pt; font-family: 'Times New Roman', =
serif; "><span class=3D"apple-style-span"><span style=3D"font-size: =
7.5pt; font-family: Courier; ">Magic: 0x4949 &lt;little-endian&gt; =
Version: 0x2a</span></span><o:p></o:p></div></div><div><div =
style=3D"margin-top: 0in; margin-right: 0in; margin-bottom: 0.0001pt; =
margin-left: 0in; font-size: 12pt; font-family: 'Times New Roman', =
serif; "><span class=3D"apple-style-span"><span style=3D"font-size: =
7.5pt; font-family: Courier; ">Directory 0: offset 1342567917 =
(0x5005f5ed) next 0 (0)</span></span><o:p></o:p></div></div><div><div =
style=3D"margin-top: 0in; margin-right: 0in; margin-bottom: 0.0001pt; =
margin-left: 0in; font-size: 12pt; font-family: 'Times New Roman', =
serif; "><span class=3D"apple-style-span"><span style=3D"font-size: =
7.5pt; font-family: Courier; ">SubFileType (254) LONG (4) =
1&lt;0&gt;</span></span><o:p></o:p></div></div><div><div =
style=3D"margin-top: 0in; margin-right: 0in; margin-bottom: 0.0001pt; =
margin-left: 0in; font-size: 12pt; font-family: 'Times New Roman', =
serif; "><span class=3D"apple-style-span"><span style=3D"font-size: =
7.5pt; font-family: Courier; ">ImageWidth (256) LONG (4) =
1&lt;348&gt;</span></span><o:p></o:p></div></div><div><div =
style=3D"margin-top: 0in; margin-right: 0in; margin-bottom: 0.0001pt; =
margin-left: 0in; font-size: 12pt; font-family: 'Times New Roman', =
serif; "><span class=3D"apple-style-span"><span style=3D"font-size: =
7.5pt; font-family: Courier; ">ImageLength (257) LONG (4) =
1&lt;260&gt;</span></span><o:p></o:p></div></div><div><div =
style=3D"margin-top: 0in; margin-right: 0in; margin-bottom: 0.0001pt; =
margin-left: 0in; font-size: 12pt; font-family: 'Times New Roman', =
serif; "><span class=3D"apple-style-span"><span style=3D"font-size: =
7.5pt; font-family: Courier; ">BitsPerSample (258) SHORT (3) =
1&lt;16&gt;</span></span><o:p></o:p></div></div><div><div =
style=3D"margin-top: 0in; margin-right: 0in; margin-bottom: 0.0001pt; =
margin-left: 0in; font-size: 12pt; font-family: 'Times New Roman', =
serif; "><span class=3D"apple-style-span"><span style=3D"font-size: =
7.5pt; font-family: Courier; ">Compression (259) SHORT (3) =
1&lt;1&gt;</span></span><o:p></o:p></div></div><div><div =
style=3D"margin-top: 0in; margin-right: 0in; margin-bottom: 0.0001pt; =
margin-left: 0in; font-size: 12pt; font-family: 'Times New Roman', =
serif; "><span class=3D"apple-style-span"><span style=3D"font-size: =
7.5pt; font-family: Courier; ">Photometric (262) SHORT (3) =
1&lt;1&gt;</span></span><o:p></o:p></div></div><div><div =
style=3D"margin-top: 0in; margin-right: 0in; margin-bottom: 0.0001pt; =
margin-left: 0in; font-size: 12pt; font-family: 'Times New Roman', =
serif; "><span class=3D"apple-style-span"><span style=3D"font-size: =
7.5pt; font-family: Courier; ">ImageDescription (270) ASCII (2) =
2545600&lt;Acquired from Photometri =
...&gt;</span></span><o:p></o:p></div></div><div><div style=3D"margin-top:=
 0in; margin-right: 0in; margin-bottom: 0.0001pt; margin-left: 0in; =
font-size: 12pt; font-family: 'Times New Roman', serif; "><span =
class=3D"apple-style-span"><span style=3D"font-size: 7.5pt; font-family: =
Courier; ">StripOffsets (273) LONG (4) 24&lt;8 7664 15320 22976 30632 =
38288 45944 53600 61256 68912 76568 84224 91880 99536 107192 114848 =
122504 130160 137816 145472 153128 160784 168440 =
176096&gt;</span></span><o:p></o:p></div></div><div><div =
style=3D"margin-top: 0in; margin-right: 0in; margin-bottom: 0.0001pt; =
margin-left: 0in; font-size: 12pt; font-family: 'Times New Roman', =
serif; "><span class=3D"apple-style-span"><span style=3D"font-size: =
7.5pt; font-family: Courier; ">SamplesPerPixel (277) SHORT (3) =
1&lt;1&gt;</span></span><o:p></o:p></div></div><div><div =
style=3D"margin-top: 0in; margin-right: 0in; margin-bottom: 0.0001pt; =
margin-left: 0in; font-size: 12pt; font-family: 'Times New Roman', =
serif; "><span class=3D"apple-style-span"><span style=3D"font-size: =
7.5pt; font-family: Courier; ">RowsPerStrip (278) LONG (4) =
1&lt;11&gt;</span></span><o:p></o:p></div></div><div><div =
style=3D"margin-top: 0in; margin-right: 0in; margin-bottom: 0.0001pt; =
margin-left: 0in; font-size: 12pt; font-family: 'Times New Roman', =
serif; "><span class=3D"apple-style-span"><span style=3D"font-size: =
7.5pt; font-family: Courier; ">StripByteCounts (279) LONG (4) 24&lt;7656 =
7656 7656 7656 7656 7656 7656 7656 7656 7656 7656 7656 7656 7656 7656 =
7656 7656 7656 7656 7656 7656 7656 7656 =
4872&gt;</span></span><o:p></o:p></div></div><div><div =
style=3D"margin-top: 0in; margin-right: 0in; margin-bottom: 0.0001pt; =
margin-left: 0in; font-size: 12pt; font-family: 'Times New Roman', =
serif; "><span class=3D"apple-style-span"><span style=3D"font-size: =
7.5pt; font-family: Courier; ">XResolution (282) RATIONAL (5) =
1&lt;72&gt;</span></span><o:p></o:p></div></div><div><div =
style=3D"margin-top: 0in; margin-right: 0in; margin-bottom: 0.0001pt; =
margin-left: 0in; font-size: 12pt; font-family: 'Times New Roman', =
serif; "><span class=3D"apple-style-span"><span style=3D"font-size: =
7.5pt; font-family: Courier; ">YResolution (283) RATIONAL (5) =
1&lt;72&gt;</span></span><o:p></o:p></div></div><div><div =
style=3D"margin-top: 0in; margin-right: 0in; margin-bottom: 0.0001pt; =
margin-left: 0in; font-size: 12pt; font-family: 'Times New Roman', =
serif; "><span class=3D"apple-style-span"><span style=3D"font-size: =
7.5pt; font-family: Courier; ">PlanarConfig (284) SHORT (3) =
1&lt;1&gt;</span></span><o:p></o:p></div></div><div><div =
style=3D"margin-top: 0in; margin-right: 0in; margin-bottom: 0.0001pt; =
margin-left: 0in; font-size: 12pt; font-family: 'Times New Roman', =
serif; "><span class=3D"apple-style-span"><span style=3D"font-size: =
7.5pt; font-family: Courier; ">ResolutionUnit (296) SHORT (3) =
1&lt;2&gt;</span></span><o:p></o:p></div></div><div><div =
style=3D"margin-top: 0in; margin-right: 0in; margin-bottom: 0.0001pt; =
margin-left: 0in; font-size: 12pt; font-family: 'Times New Roman', =
serif; "><span class=3D"apple-style-span"><span style=3D"font-size: =
7.5pt; font-family: Courier; ">Software (305) ASCII (2) 18&lt;MetaMorph =
7.1.7.0\0&gt;</span></span><o:p></o:p></div></div><div><div =
style=3D"margin-top: 0in; margin-right: 0in; margin-bottom: 0.0001pt; =
margin-left: 0in; font-size: 12pt; font-family: 'Times New Roman', =
serif; "><span class=3D"apple-style-span"><span style=3D"font-size: =
7.5pt; font-family: Courier; ">DateTime (306) ASCII (2) 21&lt;2009:09:08 =
17:54:57\0\0&gt;</span></span><o:p></o:p></div></div><div><div =
style=3D"margin-top: 0in; margin-right: 0in; margin-bottom: 0.0001pt; =
margin-left: 0in; font-size: 12pt; font-family: 'Times New Roman', =
serif; "><span class=3D"apple-style-span"><span style=3D"font-size: =
7.5pt; font-family: Courier; ">Predictor (317) SHORT (3) =
1&lt;1&gt;</span></span><o:p></o:p></div></div><div><div =
style=3D"margin-top: 0in; margin-right: 0in; margin-bottom: 0.0001pt; =
margin-left: 0in; font-size: 12pt; font-family: 'Times New Roman', =
serif; "><span class=3D"apple-style-span"><span style=3D"font-size: =
7.5pt; font-family: Courier; ">33628 (0x835c) LONG (4) 7435&lt;0 0 1 0 2 =
4095 3 0 4 1341649855 5 1341649863 6 1341649871 7 1341649880 8 0 9 255 =
11 128 12 64 ...&gt;</span></span><o:p></o:p></div></div><div><div =
style=3D"margin-top: 0in; margin-right: 0in; margin-bottom: 0.0001pt; =
margin-left: 0in; font-size: 12pt; font-family: 'Times New Roman', =
serif; "><span class=3D"apple-style-span"><span style=3D"font-size: =
7.5pt; font-family: Courier; ">33629 (0x835d) RATIONAL (5) 7400&lt;0 =
0.0383822 0.0380645 0 0.0383822 0.0380645 0 0.0383821 0.0380645 0 =
0.0383821 0.0380645 0 0.038382 0.0380645 0 0.038382 0.0380645 0 0.038382 =
0.0380645 0 0.0383819 0.0380645 =
...&gt;</span></span><o:p></o:p></div></div><div><div style=3D"margin-top:=
 0in; margin-right: 0in; margin-bottom: 0.0001pt; margin-left: 0in; =
font-size: 12pt; font-family: 'Times New Roman', serif; "><span =
class=3D"apple-style-span"><span style=3D"font-size: 7.5pt; font-family: =
Courier; ">33630 (0x835e) RATIONAL (5) 7400&lt;0 0 0 0 0 0 0 0 0 0 0 0 0 =
0 0 0 0 0 0 0 0 0 0 0 =
...&gt;</span></span><o:p></o:p></div></div><div><div style=3D"margin-top:=
 0in; margin-right: 0in; margin-bottom: 0.0001pt; margin-left: 0in; =
font-size: 12pt; font-family: 'Times New Roman', serif; "><span =
class=3D"apple-style-span"><span style=3D"font-size: 7.5pt; font-family: =
Courier; ">33631 (0x835f) LONG (4) 7400&lt;28 65536 0 65536 0 65536 0 =
65536 0 65536 0 65536 0 65536 0 65536 0 65536 0 65536 0 65536 0 65536 =
...&gt;</span></span><o:p></o:p></div></div><div><div style=3D"margin-top:=
 0in; margin-right: 0in; margin-bottom: 0.0001pt; margin-left: 0in; =
font-size: 12pt; font-family: 'Times New Roman', serif; =
"><o:p>&nbsp;</o:p></div></div><div><div style=3D"margin-top: 0in; =
margin-right: 0in; margin-bottom: 0.0001pt; margin-left: 0in; font-size: =
12pt; font-family: 'Times New Roman', serif; ">My attempt to get the the =
read Strip or Tile have failed because the libtiff &nbsp;<span =
class=3D"apple-style-span"><span style=3D"font-family: 'Courier New'; =
">TIFFTAG_TILEBYTECOUNTS&nbsp; and TIFFTAG_STRIPBYTECOUNTS<span =
class=3D"Apple-converted-space">&nbsp;</span></span></span><span =
class=3D"apple-style-span"><span microsoft=3D"" sans=3D"" =
serif'","serif"'=3D"">returns only 24. Although I can see the offset =
info in the dump, I dont know actually how to get to the next image and =
read (using&nbsp;</span></span><span class=3D"apple-style-span"><b><span =
style=3D"font-family: Times, serif; =
">TIFFReadScanline</span></b></span><span class=3D"apple-style-span"><span=
 style=3D"font-family: 'Microsoft Sans Serif', sans-serif; ">) it so =
that I can manipulate it. I should also mention that the directory count =
is useless here because it returns 1 . This problem might be too trivial =
for you but I need help finding a way to read these images. If you =
please provide examples, it would be most helpful. Thanks in =
advance.</span></span><o:p></o:p></div></div><div><div =
style=3D"margin-top: 0in; margin-right: 0in; margin-bottom: 0.0001pt; =
margin-left: 0in; font-size: 12pt; font-family: 'Times New Roman', =
serif; "><o:p>&nbsp;</o:p></div></div></div><div><div><div><div><div =
style=3D"margin-top: 0in; margin-right: 0in; margin-bottom: 0.0001pt; =
margin-left: 0in; font-size: 12pt; font-family: 'Times New Roman', =
serif; "><span style=3D"font-size: 9pt; =
">--&nbsp;<br>Shafiq<br><br>University Of Pittsburgh<br>McGowan =
Institute for Regenerative =
Medicine<o:p></o:p></span></div></div></div></div></div></div>____________=
___________________________________<br>Tiff mailing list:<span =
class=3D"Apple-converted-space">&nbsp;</span><a =
href=3D"mailto:Tiff@lists.maptools.org" style=3D"color: blue; =
text-decoration: underline; ">Tiff@lists.maptools.org</a><br><a =
href=3D"http://lists.maptools.org/mailman/listinfo/tiff" style=3D"color: =
blue; text-decoration: underline; =
">http://lists.maptools.org/mailman/listinfo/tiff</a><br><a =
href=3D"http://www.remotesensing.org/libtiff/" style=3D"color: blue; =
text-decoration: underline; =
">http://www.remotesensing.org/libtiff/</a></div></span></blockquote></div=
><br></div></body></html>=

--Apple-Mail-1--420037436--

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