getMetada problem
Posted by Aryeh Weiss on Sep 08, 2009; 7:50pm
URL: http://imagej.273.s1.nabble.com/Which-journal-to-publish-an-ImageJ-based-application-tp3691248p3691250.html
I cannot seem to print anything from getMetadata.
The following produces a blank output followed by the
===== string.
selectWindow("testimage")
mdat=getMetadata("Info");
print(mdat);
print("====");
On the other hand:
selectWindow("testimage")
mdat=getMetadata("Label");
print(mdat);
print("====");
produces the expected output. I saw some discussion of getMetadata in
the archives, but I did not find the solution. I assume that I do not
understand how to use this function.
Also, I think that the getMetadata("Info") only returns the text in the
image info window (is that correct?). If so, is there a way to read
arbitrary TIFF labels in a macro (other than calling bio-formats,
getting the matadata in a text window, and then reading the text from
that window?
--aryeh
--
Aryeh Weiss
School of Engineering
Bar Ilan University
Ramat Gan 52900 Israel
Ph: 972-3-5317638
FAX: 972-3-7384050