<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hi Benjamin,<br>
<br>
I used the libxml2 branch of your OpenSlide repo and I was able to
parse the LEICA file's ImageDescription xml tag. These files seem to
have a few IFDs with thumbnails and then some other IFDs with the hi
res image. The xml description doesn't seem to have an explicit
property to distinct between the thumbnail IFDs and the actual image
IFDs. Instead it has two image tags, for example:<br>
<tt><br>
</tt><font color="#3333ff"><i><tt><font color="#000099">
<image name="UCLAD_0000006055"
uuid="urn:uuid:f34abfa8-64ef-4d53-82f5-b966b0c6a688"><br>
<creationDate>2011-10-18T09:20:15.067Z</creationDate><br>
<device model="Leica SCN400;Leica SCN"
version="1.2.5.8691 2010/07/15 06:56:41;1.4.0.9708" /><br>
<font color="#cc0000"><b> <pixels sizeX="1616"
sizeY="4668"><br>
<dimension sizeX="1616" sizeY="4668" r="0"
ifd="0" /><br>
<dimension sizeX="404" sizeY="1167" r="1"
ifd="1" /><br>
<dimension sizeX="101" sizeY="291" r="2"
ifd="2" /><br>
</pixels><br>
</b></font> <view sizeX="26564529"
sizeY="76734666" offsetX="0" offsetY="0" spacingZ="0" /><br>
<scanSettings><br>
<objectiveSettings><br>
<objective>0.60833</objective><br>
</objectiveSettings><br>
<illuminationSettings><br>
<numericalAperture>0.7</numericalAperture><br>
<illuminationSource>brightfield</illuminationSource><br>
</illuminationSettings><br>
</scanSettings><br>
</image></font></tt></i></font><font
color="#3333ff"><i><br>
</i></font><br>
and a second one:<br>
<br>
<tt><font color="#000099"><i> <image name="UCLAD_0000006059"
uuid="urn:uuid:18082cde-57fd-4eb8-9e23-5da506cc202c"><br>
<creationDate>2011-10-18T09:23:28.277Z</creationDate><br>
<device model="Leica SCN400;Leica SCN"
version="1.2.5.8691 2010/07/15 06:56:41;1.4.0.9708" /><br>
<font color="#cc0000"><b> <pixels sizeX="22112"
sizeY="13696"><br>
<dimension sizeX="22112" sizeY="13696" r="0"
ifd="3" /><br>
<dimension sizeX="5528" sizeY="3424" r="1"
ifd="4" /><br>
<dimension sizeX="1382" sizeY="856" r="2"
ifd="5" /><br>
<dimension sizeX="346" sizeY="214" r="3"
ifd="6" /><br>
</pixels><br>
</b></font> <view sizeX="11056000" sizeY="6848000"
offsetX="7359742" offsetY="27020003" spacingZ="400" /><br>
<scanSettings><br>
<objectiveSettings><br>
<objective>20</objective><br>
</objectiveSettings><br>
<illuminationSettings><br>
<numericalAperture>0.4</numericalAperture><br>
<illuminationSource>brightfield</illuminationSource><br>
</illuminationSettings><br>
</scanSettings><br>
</image><br>
</i></font></tt><br>
I can attach the full xml (there's not much more) if you want, but
there doesn't seem to be a property that defines which is the
thumbnail and which is the main image.<br>
Moreover, all the layers are tiled (in the files that I have), so a
distinction between striped and tiled cannot work either.<br>
<br>
My question here is: Would it be safe / acceptable to assume that
the first tag always refers to the the thumbnail IFDs and the second
to the main image? In the images that I have seen there are always
three tags in the description and nothing more. The hierarchy is
like this:<br>
<br>
<tt>scn (root element)<br>
collection<br>
barcode<br>
image<br>
image<br>
</tt><br>
So there is always a barcode and two image tags. In the files that I
have, image #1 is the thumbnail.<br>
<br>
Regards<br>
Agelos<br>
<br>
<div class="moz-cite-prefix">On 3/7/2012 1:46 πμ, Benjamin Gilbert
wrote:<br>
</div>
<blockquote cite="mid:4FF224DE.6090100@cs.cmu.edu" type="cite">
<pre wrap="">On 06/22/2012 04:22 PM, Agelos Pappas wrote:
</pre>
<blockquote type="cite">
<pre wrap="">Thank you, I will let you know when I have the leica vendor file ready.
</pre>
</blockquote>
<pre wrap="">
I have created a wiki page:
<a class="moz-txt-link-freetext" href="https://github.com/openslide/openslide/wiki/AddingASlideFormat">https://github.com/openslide/openslide/wiki/AddingASlideFormat</a>
with some initial documentation that might help you.
Additions and corrections welcome.
--Benjamin Gilbert
_______________________________________________
openslide-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:openslide-users@lists.andrew.cmu.edu">openslide-users@lists.andrew.cmu.edu</a>
<a class="moz-txt-link-freetext" href="https://lists.andrew.cmu.edu/mailman/listinfo/openslide-users">https://lists.andrew.cmu.edu/mailman/listinfo/openslide-users</a>
-----
No virus found in this message.
Checked by AVG - <a class="moz-txt-link-abbreviated" href="http://www.avg.com">www.avg.com</a>
Version: 2012.0.2180 / Virus Database: 2437/5105 - Release Date: 07/01/12
</pre>
</blockquote>
<br>
<br>
</body>
</html>