Login  Register

Re: bioformats retrieve calibration in JAVA

Posted by Jan Eglinger on Oct 13, 2015; 12:00pm
URL: http://imagej.273.s1.nabble.com/bioformats-retrieve-calibration-in-JAVA-tp5014616p5014617.html

Hi Emanuele,

have a look at this example script by Curtis Rueden:
https://gist.github.com/ctrueden/6282856

After retrieving the metadata object `omeMeta`, this should work for you:
     omeMeta.getPixelsPhysicalSizeX();

See
http://javadoc.imagej.net/Bio-Formats/index.html?ome/xml/meta/MetadataRetrieve.html
for all the method to retrieve metadata.

Hope that helps,
Jan


On 13.10.2015 12:33, Emanuele Martini wrote:

> Hi to all,
> I am trying to retrieve the calibration of a single series of image usi
> bioformats api.
> How can I do that?
> I am doing something like:
> ImageProcessorReader r = new ImageProcessorReader( new
> ChannelMerger(LociPrefs.makeImageReader()));
> r.setId(path_file);
>
> r.get...
> and here the problems... there are a lot of getmetadata features I don't
> understand how to arrive to getPixelsPhysicalSizeX()
>
> Could you please hel pme?
> Thanks
> Emanuele Martini
>

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html