Login  Register

Antwort: Re: getMetada problem

Posted by Joachim Wesner on Sep 09, 2009; 5:58am
URL: http://imagej.273.s1.nabble.com/Which-journal-to-publish-an-ImageJ-based-application-tp3691248p3691255.html

Hi Aryeh,

I once wrote a Java class that can read general TIFF tags and even use it
in one of my plugins, but it´s in the moment not directly callable from a
macro.

Getting to work this would require some tweeking, I´m in the moment a bit
busy with other things.......

If you don´t get the Bioformat reader to work, please contact me again by
PM!

Cheers!

Joachim Wesner



                                                                           
             Aryeh Weiss                                                  
             <[hidden email]                                            
             .IL>                                                       An
             Gesendet von:              [hidden email]                
             ImageJ Interest                                         Kopie
             Group                                                        
             <[hidden email].                                       Thema
             GOV>                       Re: getMetada problem              
                                                                           
                                                                           
             09.09.2009 05:39                                              
                                                                           
                                                                           
              Bitte antworten                                              
                    an                                                    
             [hidden email].                                            
                    il                                                    
                                                                           
                                                                           




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




______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
______________________________________________________________________