<div dir="ltr">Hello David,<div><br></div><div>Thank you for your email. I will play with those functions.</div><div><br></div><div>Regards,</div><div>Qi</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Dec 5, 2017 at 7:20 AM, David Gault (Staff) <span dir="ltr"><<a href="mailto:d.gault@dundee.ac.uk" target="_blank">d.gault@dundee.ac.uk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="word-wrap:break-word">
Hi Qi,
<div><br>
</div>
<div>In the Bio-Formats developer documentation we have a section on handling whole slide images which may be of interest to you:<a href="https://docs.openmicroscopy.org/bio-formats/5.7.2/developers/wsi.html" target="_blank">Working with whole slide images</a></div>
<div>There is also a short example on reading sub resolutions: <a href="https://github.com/openmicroscopy/bioformats/blob/develop/components/formats-gpl/utils/SubResolutionExample.java" target="_blank">https://github.<wbr>com/openmicroscopy/bioformats/<wbr>blob/develop/components/<wbr>formats-gpl/utils/<wbr>SubResolutionExample.java</a></div>
<div><br>
</div>
<div>More generally, in Bio-Formats access to metadata is provided via the MetadataStore and MetadataRetrieve interfaces. In this instance we would use MetadataRetrieve to access getters for all of the available metadata in the OME-XML model objects.</div>
<div>MetadataRetrieve can be used as below and a full list of the available getters can be found at <a href="https://downloads.openmicroscopy.org/bio-formats/5.7.2/api/loci/formats/meta/MetadataRetrieve.html" target="_blank">https://downloads.<wbr>openmicroscopy.org/bio-<wbr>formats/5.7.2/api/loci/<wbr>formats/meta/MetadataRetrieve.<wbr>html</a></div>
<div>
<pre style="overflow-x:auto;overflow-y:hidden;padding:5px;background-color:rgb(236,239,241);color:rgb(69,90,100);line-height:15.6px;border-top-width:1px;border-style:solid none;border-top-color:rgb(170,204,153);border-bottom-width:1px;border-bottom-color:rgb(170,204,153)">ServiceFactory factory = new ServiceFactory();
OMEXMLService service = factory.getInstance(<wbr>OMEXMLService.class);
MetadataRetrieve retrieve = service.asRetrieve(reader.<wbr>getMetadataStore());</pre>
</div>
<div><br>
</div>
<div>Additionally Bio-Formats also stores original metadata which is not a part of the OME-XML model as key value pairs. The metadata stored here will differ depending on the specific format being read. These values can be accessed using the FormatReader
interface as shown below:</div>
<div>
<pre style="overflow-x:auto;overflow-y:hidden;padding:5px;background-color:rgb(236,239,241);color:rgb(69,90,100);line-height:15.6px;border-top-width:1px;border-style:solid none;border-top-color:rgb(170,204,153);border-bottom-width:1px;border-bottom-color:rgb(170,204,153)">// to retrieve original metadata specific to the current series
<span style="font-family:Menlo">Hashtable<String, Object> seriesMetadata = reader.getSeriesMetadata();</span>
// to retrieve original metadata not unique to the series
Hashtable<String, Object> globalMetadata = reader.getGlobalMetadata();</pre>
<div><br>
</div>
<div>I hope that is of help as a starting point but if there is still specific metadata fields which you are still unsure how to access please do let us know along with the format you are using and we can help further.</div>
</div>
<div><br>
</div>
<div>With Thanks,</div>
<div>David Gault</div>
<div><br>
<div>
<blockquote type="cite"><div><div class="h5">
<div>On 4 Dec 2017, at 21:36, Qi Gong <<a href="mailto:qigong@gwmail.gwu.edu" target="_blank">qigong@gwmail.gwu.edu</a>> wrote:</div>
<br class="m_-4111527709505146470Apple-interchange-newline">
</div></div><div><div><div class="h5">
<div dir="ltr">Hello everyone,
<div><br>
</div>
<div>We use Bioformats to load whole slide imaging. Does anyone know what function we can use to get all WSI information (e.g. each level image size, apparent magnification, MMP, Image Type, Image Depth, Compression Type, Compression Ratio, Organization...).
Thank you.</div>
<div><br>
</div>
<div>Regards,</div>
<div>Qi<br clear="all">
<div><br>
</div>
-- <br>
<div class="m_-4111527709505146470gmail_signature">mobile phone: <a href="tel:(202)%20406-0862" value="+12024060862" target="_blank">2024060862</a></div>
</div>
</div></div></div>
______________________________<wbr>_________________<br>
ome-users mailing list<br>
<a href="mailto:ome-users@lists.openmicroscopy.org.uk" target="_blank">ome-users@lists.<wbr>openmicroscopy.org.uk</a><br>
<a href="http://lists.openmicroscopy.org.uk/mailman/listinfo/ome-users" target="_blank">http://lists.openmicroscopy.<wbr>org.uk/mailman/listinfo/ome-<wbr>users</a><br>
</div>
</blockquote>
</div>
<br>
</div>
<br>
<span style="font-size:10pt">The University of Dundee is a registered Scottish Charity, No: SC015096</span>
</div>
<br>______________________________<wbr>_________________<br>
ome-users mailing list<br>
<a href="mailto:ome-users@lists.openmicroscopy.org.uk">ome-users@lists.<wbr>openmicroscopy.org.uk</a><br>
<a href="http://lists.openmicroscopy.org.uk/mailman/listinfo/ome-users" rel="noreferrer" target="_blank">http://lists.openmicroscopy.<wbr>org.uk/mailman/listinfo/ome-<wbr>users</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">mobile phone: 2024060862</div>
</div>