Adding Text to TIFF Header

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

Adding Text to TIFF Header

Phase GmbH
Hi,

I would like add text information to the header of a TIFF file and also read text information from it. I know that the TIFF format specification lists a number of Tags for ASCII text, ie. tag 270 (dec.), image description.

Is it possible to address one of the these ASCII TIFF tags by the ImageJ API ?

Thanks

Christian Kreutzfeldt
Reply | Threaded
Open this post in threaded view
|

Antwort: Adding Text to TIFF Header

Joachim Wesner
HI Christian,

I have recently written a Java class that can *read* arbitrary TIFF tags
(including float, variable length), but not yet write them, because at best
this would mean to integrate it with the ImageJ fileio routines. (In the
moment it independently opens the file to read all tags it finds)

If you are interested, I can send you the code.

Mit freundlichen Grüßen / Best regards

Joachim Wesner

Leica Microsystems CMS GmbH | GmbH mit Sitz in Wetzlar | Amtsgericht
Wetzlar  HRB 2432
Geschäftsführer:  Dr. Stefan Traeger | Dr. Wolf-Otto Reuter | Dr. David Roy
Martyr | Colin Davis


                                                                           
             Phase GmbH                                                    
             <imaging@PHASE-HL                                            
             .COM>                                                      An
             Gesendet von:              [hidden email]                
             ImageJ Interest                                         Kopie
             Group                                                        
             <[hidden email].                                       Thema
             GOV>                       Adding Text to TIFF Header        
                                                                           
                                                                           
             17.03.2008 10:55                                              
                                                                           
                                                                           
              Bitte antworten                                              
                    an                                                    
                Phase GmbH                                                
             <imaging@phase-hl                                            
                   .com>                                                  
                                                                           
                                                                           




Hi,

I would like add text information to the header of a TIFF file and also
read text information from it. I know that the TIFF format specification
lists a number of Tags for ASCII text, ie. tag 270 (dec.), image
description.

Is it possible to address one of the these ASCII TIFF tags by the ImageJ
API ?

Thanks

Christian Kreutzfeldt



______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
______________________________________________________________________
Reply | Threaded
Open this post in threaded view
|

Re: Antwort: Adding Text to TIFF Header

Harry Parker
Hi Joachim,

I would be interested in seeing your TIFF tag reading code.

I am working on analyzing raw Bayer color filter array image files in ImageJ. Currently I use an inhouse C++ program to save them as PGM files. I would like to switch to TIFF to add experimental information to the image data.

I've found very little TIFF reading code in Java.
 
--  
Harry Parker  
Senior Systems Engineer  
Digital Imaging Systems, Inc.

----- Original Message ----
From: Joachim Wesner <[hidden email]>
To: [hidden email]
Sent: Monday, March 17, 2008 6:22:46 AM
Subject: Antwort: Adding Text to TIFF Header

HI Christian,

I have recently written a Java class that can *read* arbitrary TIFF tags
(including float, variable length), but not yet write them, because at best
this would mean to integrate it with the ImageJ fileio routines. (In the
moment it independently opens the file to read all tags it finds)

If you are interested, I can send you the code.

Mit freundlichen Grüßen / Best regards

Joachim Wesner

Leica Microsystems CMS GmbH | GmbH mit Sitz in Wetzlar | Amtsgericht
Wetzlar  HRB 2432
Geschäftsführer:  Dr. Stefan Traeger | Dr. Wolf-Otto Reuter | Dr. David Roy
Martyr | Colin Davis


                                                                           
             Phase GmbH                                                    
             <imaging@PHASE-HL                                            
             .COM>                                                      An
             Gesendet von:              [hidden email]                
             ImageJ Interest                                         Kopie
             Group                                                        
             <[hidden email].                                       Thema
             GOV>                       Adding Text to TIFF Header        
                                                                           
                                                                           
             17.03.2008 10:55                                              
                                                                           
                                                                           
              Bitte antworten                                              
                    an                                                    
                Phase GmbH                                                
             <imaging@phase-hl                                            
                   .com>                                                  
                                                                           
                                                                           




Hi,

I would like add text information to the header of a TIFF file and also
read text information from it. I know that the TIFF format specification
lists a number of Tags for ASCII text, ie. tag 270 (dec.), image
description.

Is it possible to address one of the these ASCII TIFF tags by the ImageJ
API ?

Thanks

Christian Kreutzfeldt



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





      ____________________________________________________________________________________
Never miss a thing.  Make Yahoo your home page.
http://www.yahoo.com/r/hs
Reply | Threaded
Open this post in threaded view
|

Re: Adding Text to TIFF Header

ctrueden
In reply to this post by Joachim Wesner
Hi Joachim & Christian,

Bio-Formats has logic to read and write arbitrary TIFF tags. The code is
licensed under LGPL, meaning it can be linked to commercial apps, and the
code can be found in the loci.formats.TiffTools class:

<
https://skyking.microscopy.wisc.edu/trac/java/browser/trunk/loci/formats/TiffTools.java
>
<http://www.loci.wisc.edu/software/docs/loci/formats/TiffTools.html>
<http://www.loci.wisc.edu/ome/formats.html>

See also loci.formats.in.TiffReader and loci.formats.out.TiffWriter.

It would be very easy to write an ImageJ plugin that calls this logic as
needed to perform whatever actions you want.

-Curtis

On Mon, Mar 17, 2008 at 5:22 AM, Joachim Wesner <
[hidden email]> wrote:

> HI Christian,
>
> I have recently written a Java class that can *read* arbitrary TIFF tags
> (including float, variable length), but not yet write them, because at
> best
> this would mean to integrate it with the ImageJ fileio routines. (In the
> moment it independently opens the file to read all tags it finds)
>
> If you are interested, I can send you the code.
>
> Mit freundlichen Grüßen / Best regards
>
> Joachim Wesner
>
> Leica Microsystems CMS GmbH | GmbH mit Sitz in Wetzlar | Amtsgericht
> Wetzlar  HRB 2432
> Geschäftsführer:  Dr. Stefan Traeger | Dr. Wolf-Otto Reuter | Dr. David
> Roy
> Martyr | Colin Davis
>
>
>
>             Phase GmbH
>             <imaging@PHASE-HL
>             .COM>                                                      An
>             Gesendet von:              [hidden email]
>             ImageJ Interest                                         Kopie
>             Group
>             <[hidden email].                                       Thema
>             GOV>                       Adding Text to TIFF Header
>
>
>             17.03.2008 10:55
>
>
>              Bitte antworten
>                    an
>                Phase GmbH
>             <imaging@phase-hl
>                   .com>
>
>
>
>
>
>
> Hi,
>
> I would like add text information to the header of a TIFF file and also
> read text information from it. I know that the TIFF format specification
> lists a number of Tags for ASCII text, ie. tag 270 (dec.), image
> description.
>
> Is it possible to address one of the these ASCII TIFF tags by the ImageJ
> API ?
>
> Thanks
>
> Christian Kreutzfeldt
>
>
>
> ______________________________________________________________________
> This email has been scanned by the MessageLabs Email Security System.
> For more information please visit http://www.messagelabs.com/email
> ______________________________________________________________________
>