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 2009F40080A
	for <info@awaresystems.be>; Mon,  8 Mar 2010 17:47:41 +0100 (CET)
Received: by mx-h.b-one.net (Postfix, from userid 106)
	id 0DD0A24BCEC; Mon,  8 Mar 2010 17:47:40 +0100 (CET)
X-Virus-Scanned: by one.com
X-Spam-Score: 0.002
X-Spam-Level: 
X-Spam-Status: No, score=0.002 tagged_above=0 required=4
 tests=[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-h.b-one.net (Postfix) with ESMTP id 0E8482400DA for
 <info@awaresystems.be>; Mon,  8 Mar 2010 17:47:39 +0100 (CET)
Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by
 lists.maptools.org (Postfix) with ESMTP id 299C41D1A16EE; Mon,  8 Mar 2010
 11:46:22 -0500 (EST)
Received: from mb2i1.ns.pitt.edu (mb2i1mx.ns.pitt.edu [136.142.11.142]) by
 lists.maptools.org (Postfix) with ESMTP id 2C1F51D5B7A93 for
 <tiff@lists.maptools.org>; Mon,  8 Mar 2010 11:34:11 -0500 (EST)
Received: from [192.168.1.162] (c-98-239-183-10.hsd1.pa.comcast.net
 [98.239.183.10]) by pitt.edu (PMDF V6.3-x11 #31505) with ESMTPSA id
 <0KYZ00E5A20YUO@mb2i1.ns.pitt.edu> for tiff@lists.maptools.org; Mon, 08 Mar
 2010 11:34:11 -0500 (EST)
Date: Mon, 08 Mar 2010 11:34:10 -0500
From: Shafiq Abedin <sha33@pitt.edu>
In-reply-to: <88752D2C-D4EB-4813-89C5-AFC78FB181A9@pitt.edu>
To: tiff@lists.maptools.org
Message-id: <E12AAAD1-0734-4347-ADE7-D49CA31F758F@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>
 <EEFCCAAF-5EC4-4CBD-8E7D-F1FBDC0245CC@pitt.edu>
 <88752D2C-D4EB-4813-89C5-AFC78FB181A9@pitt.edu>
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="===============1603071913=="
Mime-version: 1.0
Sender: tiff-bounces@lists.maptools.org
Errors-To: tiff-bounces@lists.maptools.org


--===============1603071913==
Content-type: multipart/alternative; boundary=Apple-Mail-3--151442221


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

Hi folks,

Here are a few example of stk files if anyone is interested in giving =
this a shot.=20

Below are links to the sample files:
ftp://ftp.meta.moleculardevices.com/support/stack/10xcalib.stk=20
ftp://ftp.meta.moleculardevices.com/support/stack/bigstk.zip
ftp://ftp.meta.moleculardevices.com/support/stack/calstk.zip=20
ftp://ftp.meta.moleculardevices.com/support/stack/smstk.zip


Thanks


On Mar 8, 2010, at 10:24 AM, Shafiq Abedin wrote:

> Hi,
>=20
> Since no one has responded with as explanation regarding reading a =
.stk file with libtiff, I am assuming you cant. I am looking into the =
matlab tiffread2.m file and trying to figure out how to do it without =
libtiff. If anyone has any suggestion, please let me know. It will be =
very helpful to me if you do :)
>=20
> Thnaks
>=20
> --=20
> Shafiq Abedin
>=20
> University Of Pittsburgh
> McGowan Institute for Regenerative Medicine
>=20
>=20
> On Mar 5, 2010, at 8:57 AM, Shafiq Abedin wrote:
>=20
>> 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
>>=20
>>=20
>> Shafiq Abedin
>> sha33@pitt.edu
>>=20
>>=20
>>=20
>>=20
>> On Mar 5, 2010, at 7:46 AM, Ashish Uthama wrote:
>>=20
>>> 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/
>>=20
>> _______________________________________________
>> Tiff mailing list: Tiff@lists.maptools.org
>> http://lists.maptools.org/mailman/listinfo/tiff
>> http://www.remotesensing.org/libtiff/
>=20
> _______________________________________________
> Tiff mailing list: Tiff@lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/tiff
> http://www.remotesensing.org/libtiff/


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

<html><head></head><body style=3D"word-wrap: break-word; =
-webkit-nbsp-mode: space; -webkit-line-break: after-white-space; =
"><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>Hi =
folks,</div></div></span></div><div><br =
class=3D"webkit-block-placeholder"></div><div>Here are a few example of =
stk files if anyone is interested in giving this a =
shot.&nbsp;</div><div><br></div><div><div style=3D"margin-top: 0px; =
margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal =
normal normal 10px/normal 'Adobe Garamond Pro'; ">Below are links to the =
sample files:</div><div style=3D"margin-top: 0px; margin-right: 0px; =
margin-bottom: 0px; margin-left: 0px; font: normal normal normal =
10px/normal Arial; color: rgb(51, 0, 255); "><a =
href=3D"ftp://ftp.meta.moleculardevices.com/support/stack/10xcalib.stk">ft=
p://ftp.meta.moleculardevices.com/support/stack/10xcalib.stk</a>&nbsp;</di=
v><div style=3D"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; =
margin-left: 0px; font: normal normal normal 10px/normal Arial; color: =
rgb(51, 0, 255); "><a =
href=3D"ftp://ftp.meta.moleculardevices.com/support/stack/bigstk.zip">ftp:=
//ftp.meta.moleculardevices.com/support/stack/bigstk.zip</a></div><div =
style=3D"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; =
margin-left: 0px; font: normal normal normal 8px/normal Arial; color: =
rgb(166, 40, 0); "><span class=3D"Apple-style-span" style=3D"color: =
rgb(51, 0, 255); font-size: 10px; "><a =
href=3D"ftp://ftp.meta.moleculardevices.com/support/stack/calstk.zip">ftp:=
//ftp.meta.moleculardevices.com/support/stack/calstk.zip</a>&nbsp;</span><=
/div><div style=3D"margin-top: 0px; margin-right: 0px; margin-bottom: =
0px; margin-left: 0px; font: normal normal normal 8px/normal Arial; =
color: rgb(166, 40, 0); "><span class=3D"Apple-style-span" style=3D"color:=
 rgb(51, 0, 255); font-size: 10px; "><a =
href=3D"ftp://ftp.meta.moleculardevices.com/support/stack/smstk.zip">ftp:/=
/ftp.meta.moleculardevices.com/support/stack/smstk.zip</a></span></div></d=
iv><div><br></div><div><br></div><div>Thanks</div><div><br></div><div><br>=
</div><div><div>On Mar 8, 2010, at 10:24 AM, Shafiq Abedin =
wrote:</div><br class=3D"Apple-interchange-newline"><blockquote =
type=3D"cite"><div style=3D"word-wrap: break-word; -webkit-nbsp-mode: =
space; -webkit-line-break: after-white-space; =
">Hi,<div><br></div><div>Since no one has responded with as explanation =
regarding reading a .stk file with libtiff, I am assuming you cant. I am =
looking into the matlab&nbsp;tiffread2.m file and trying to figure out =
how to do it without libtiff. If anyone has any suggestion, please let =
me know. It will be very helpful to me if you do =
:)</div><div><br></div><div>Thnaks</div><div><br><div><span =
class=3D"Apple-style-span" style=3D"font-size: 12px; =
"><div><div>--&nbsp;<br>Shafiq Abedin<br><br></div><div>University Of =
Pittsburgh</div><div>McGowan Institute for Regenerative =
Medicine<br></div></div></span></div><div><br =
class=3D"webkit-block-placeholder"></div><div><br></div><div><div>On Mar =
5, 2010, at 8:57 AM, Shafiq Abedin wrote:</div><br =
class=3D"Apple-interchange-newline"><blockquote type=3D"cite"><div =
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; =
font-family: Helvetica; font-size: 12px; 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><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></div>_______________________________________________<br>Tiff =
mailing list: <a =
href=3D"mailto:Tiff@lists.maptools.org">Tiff@lists.maptools.org</a><br><a =
href=3D"http://lists.maptools.org/mailman/listinfo/tiff">http://lists.mapt=
ools.org/mailman/listinfo/tiff</a><br><a =
href=3D"http://www.remotesensing.org/libtiff/">http://www.remotesensing.or=
g/libtiff/</a></blockquote></div><br></div></div>_________________________=
______________________<br>Tiff mailing list: <a =
href=3D"mailto:Tiff@lists.maptools.org">Tiff@lists.maptools.org</a><br><a =
href=3D"http://lists.maptools.org/mailman/listinfo/tiff">http://lists.mapt=
ools.org/mailman/listinfo/tiff</a><br>http://www.remotesensing.org/libtiff=
/</blockquote></div><br></body></html>=

--Apple-Mail-3--151442221--

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