<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">&nbsp;&nbsp;&nbsp;
            &lt;image name="UCLAD_0000006055"
            uuid="urn:uuid:f34abfa8-64ef-4d53-82f5-b966b0c6a688"&gt;<br>
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            &lt;creationDate&gt;2011-10-18T09:20:15.067Z&lt;/creationDate&gt;<br>
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;device model="Leica SCN400;Leica SCN"
            version="1.2.5.8691 2010/07/15 06:56:41;1.4.0.9708" /&gt;<br>
            <font color="#cc0000"><b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;pixels sizeX="1616"
                sizeY="4668"&gt;<br>
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;dimension sizeX="1616" sizeY="4668" r="0"
                ifd="0" /&gt;<br>
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;dimension sizeX="404" sizeY="1167" r="1"
                ifd="1" /&gt;<br>
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;dimension sizeX="101" sizeY="291" r="2"
                ifd="2" /&gt;<br>
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/pixels&gt;<br>
              </b></font>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;view sizeX="26564529"
            sizeY="76734666" offsetX="0" offsetY="0" spacingZ="0" /&gt;<br>
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;scanSettings&gt;<br>
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;objectiveSettings&gt;<br>
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;objective&gt;0.60833&lt;/objective&gt;<br>
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/objectiveSettings&gt;<br>
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;illuminationSettings&gt;<br>
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            &lt;numericalAperture&gt;0.7&lt;/numericalAperture&gt;<br>
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            &lt;illuminationSource&gt;brightfield&lt;/illuminationSource&gt;<br>
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/illuminationSettings&gt;<br>
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/scanSettings&gt;<br>
            &nbsp;&nbsp;&nbsp; &lt;/image&gt;</font></tt></i></font><font
      color="#3333ff"><i><br>
      </i></font><br>
    and a second one:<br>
    <br>
    <tt><font color="#000099"><i>&nbsp;&nbsp;&nbsp; &lt;image name="UCLAD_0000006059"
          uuid="urn:uuid:18082cde-57fd-4eb8-9e23-5da506cc202c"&gt;<br>
          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
          &lt;creationDate&gt;2011-10-18T09:23:28.277Z&lt;/creationDate&gt;<br>
          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;device model="Leica SCN400;Leica SCN"
          version="1.2.5.8691 2010/07/15 06:56:41;1.4.0.9708" /&gt;<br>
          <font color="#cc0000"><b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;pixels sizeX="22112"
              sizeY="13696"&gt;<br>
              &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;dimension sizeX="22112" sizeY="13696" r="0"
              ifd="3" /&gt;<br>
              &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;dimension sizeX="5528" sizeY="3424" r="1"
              ifd="4" /&gt;<br>
              &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;dimension sizeX="1382" sizeY="856" r="2"
              ifd="5" /&gt;<br>
              &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;dimension sizeX="346" sizeY="214" r="3"
              ifd="6" /&gt;<br>
              &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/pixels&gt;<br>
            </b></font>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;view sizeX="11056000" sizeY="6848000"
          offsetX="7359742" offsetY="27020003" spacingZ="400" /&gt;<br>
          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;scanSettings&gt;<br>
          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;objectiveSettings&gt;<br>
          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;objective&gt;20&lt;/objective&gt;<br>
          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/objectiveSettings&gt;<br>
          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;illuminationSettings&gt;<br>
          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
          &lt;numericalAperture&gt;0.4&lt;/numericalAperture&gt;<br>
          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
          &lt;illuminationSource&gt;brightfield&lt;/illuminationSource&gt;<br>
          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/illuminationSettings&gt;<br>
          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/scanSettings&gt;<br>
          &nbsp;&nbsp;&nbsp; &lt;/image&gt;<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>
      &nbsp;&nbsp;&nbsp; collection<br>
      &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; barcode<br>
      &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; image<br>
      &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 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 &#960;&#956;, 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>