OME-XML metadata from an Imagej macro?
Posted:
Wed Dec 06, 2017 4:57 pm
by i.munro
Hello all.
Can anyone suggest a way to access arbitrary OME-XML metadata from an Imagej macro please?
I use the Bio-Formats macro extensions for most things but I now need to access the "Detector ID"
as shown in the attached screenshot.
The file in question is an ome-tiff generated by Micro-Manager.
Thanks in advance
Ian
Re: OME-XML metadata from an Imagej macro?
Posted:
Thu Dec 07, 2017 2:21 pm
by i.munro
I should add that my current approach - while crude does work:
https://github.com/imunro/HPC_STORM/blo ... o.ijm#L131
Re: OME-XML metadata from an Imagej macro?
Posted:
Thu Dec 07, 2017 2:32 pm
by dgault
Hi Ian,
Unfortunately the existing Macro extensions do not cover all of the metadata and "Detector ID" is not one of the fields that is easily retrieved.If you need greater access to the metadata one approach may be to use a custom plugin rather than a macro.
Below is an example of a simple plugin to read and display an image. The difference here is that it provides you with full access to the Bio-Formats Java API. If that sounds like an approach that might work I can certainly help you with accessing specific metadata using the plugin approach:
https://github.com/openmicroscopy/biofo ... Image.javaDavid
Re: OME-XML metadata from an Imagej macro?
Posted:
Thu Dec 07, 2017 2:41 pm
by dgault
Just seeing your follow up with your current approach. If you are able to parse the values from original metadata fields, although it is not ideal and more hassle than reading the Dectector field directly, that may be an easier solution than having to rewrite a plugin.
Re: OME-XML metadata from an Imagej macro?
Posted:
Thu Dec 07, 2017 3:01 pm
by i.munro
Thanks David
I wondered if I was missing something obvious.
I'm going to try, initially then to change where that info is in the Metadata in the acquisition code.
Your help is much appreciated as ever.
Ian