Re: getMetada problem
Posted by
Aryeh Weiss on
Sep 09, 2009; 3:39am
URL: http://imagej.273.s1.nabble.com/Which-journal-to-publish-an-ImageJ-based-application-tp3691248p3691254.html
Thank you for your reply. The image has metadata, but the metadata were
not created originally by ImageJ. I received the following from Wayne
that explains the issue.
> The getMetadata() function can only retrieve metadata saved by ImageJ
> in the TIFF header. It returns an empty string if no ImageJ metadata
> is found. You have to use the Bio-formats plugin to retrieve metadata
> saved in TIFF headers by other applications.
A plugin or macro-command that reads any TIFF tag would beuseful, so we
will try to write something based on TiffDecoder.
--aryeh
Gabriel Landini wrote:
> On Tuesday 08 September 2009 20:50:40 Aryeh Weiss wrote:
>> I cannot seem to print anything from getMetadata.
>
> I can, but maybe this is not what you want?: setMetadata("test 123");
> print(getMetadata()); print("====");
>
> Sorry to ask the obvious, does the image you are using contain any
> metadata? What do you see when you run the gui Image>Show Info... ?
>
> I can see the "test 123" set with the above.
>
> Cheers
>
> Gabriel
>
--
Aryeh Weiss
School of Engineering
Bar Ilan University
Ramat Gan 52900 Israel
Ph: 972-3-5317638
FAX: 972-3-7384050