get ome tiff metadata of an ompen image in IJ macro

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

get ome tiff metadata of an ompen image in IJ macro

Heerpa
Hi all,

 

I am trying to retreive the deltaT s  of an already-opened ome-tiff movie in
a macro.

 

For this, I am trying to go along the lines of curtis'macro
https://github.com/openmicroscopy/bioformats/blob/develop/components/loci-pl
ugins/utils/macros/planeTimings.txt

however, here, the ome metadata seems to be retreived when you pass on the
file path (Ext.setId), l.12

In the case when I have the image already open in ImageJ, I don't know how
to  get the file path. In a plugin, I would go via OriginalFileInfo, and
pass on the xml. But how should I do it in a macro?

 

thanks

   Heinrich


--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html
Reply | Threaded
Open this post in threaded view
|

Re: get ome tiff metadata of an ompen image in IJ macro

Melissa Linkert-2
Hi Heinrich,

> I am trying to retreive the deltaT s  of an already-opened ome-tiff movie in
> a macro.
>
>  
>
> For this, I am trying to go along the lines of curtis'macro
> https://github.com/openmicroscopy/bioformats/blob/develop/components/loci-pl
> ugins/utils/macros/planeTimings.txt
>
> however, here, the ome metadata seems to be retreived when you pass on the
> file path (Ext.setId), l.12
>
> In the case when I have the image already open in ImageJ, I don't know how
> to  get the file path. In a plugin, I would go via OriginalFileInfo, and
> pass on the xml. But how should I do it in a macro?

These macro commands:

getInfo("image.directory");
getInfo("image.filename");

should give you the file path for the current open image.

Regards,
-Melissa

On Fri, Jul 26, 2013 at 08:01:20PM +0200, Heinrich Grabmayr wrote:

> Hi all,
>
>  
>
> I am trying to retreive the deltaT s  of an already-opened ome-tiff movie in
> a macro.
>
>  
>
> For this, I am trying to go along the lines of curtis'macro
> https://github.com/openmicroscopy/bioformats/blob/develop/components/loci-pl
> ugins/utils/macros/planeTimings.txt
>
> however, here, the ome metadata seems to be retreived when you pass on the
> file path (Ext.setId), l.12
>
> In the case when I have the image already open in ImageJ, I don't know how
> to  get the file path. In a plugin, I would go via OriginalFileInfo, and
> pass on the xml. But how should I do it in a macro?
>
>  
>
> thanks
>
>    Heinrich
>
>
> --
> ImageJ mailing list: http://imagej.nih.gov/ij/list.html

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