Skip to main content

Extracting TIFF Annotations

3 replies [Last post]
amit_batra
Offline
Joined: 2005-04-03

Hi All,

I would like to be able to extract annotations from a TIFF image, with their x,y co-ordinates (for a definition of TIFF annotations, please see http://www.global360.com/support%5Fand%5Fservices/support/support%5Fimag...).

Is there a way in Java Imaging APIs that would let me do this?

-Amit

Message was edited by: amit_batra

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Brian Burkhalter

In theory you should be able to pull anything out of TIFF image metadata.
This document does not give much detail ...

On Tue, 3 Oct 2006, jai-imageio@javadesktop.org wrote:

> Hi All,
>
> I would like to be able to extract annotations from a TIFF image, with their x,y co-ordinates (for a definition of TIFF annotations, please see http://www.teraview.ca/newsletters/dec04.pdf).
>
> Is there a way in Java Imaging APIs that would let me do this?
>
> -Amit
> [Message sent by forum member 'amit_batra' (amit_batra)]
>
> http://forums.java.net/jive/thread.jspa?messageID=159230
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: interest-unsubscribe@jai-imageio.dev.java.net
> For additional commands, e-mail: interest-help@jai-imageio.dev.java.net
>
>

----------------
Brian Burkhalter
Java Media, Imaging, and Graphics
Sun Microsystems, Inc.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
This email message is for the sole use of the intended recipient(s)
and may contain confidential and privileged information. Any
unauthorized review, use, disclosure or distribution is prohibited.
If you are not the intended recipient, please contact the sender by
reply email and destroy all copies of the original message.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

---------------------------------------------------------------------
To unsubscribe, e-mail: interest-unsubscribe@jai-imageio.dev.java.net
For additional commands, e-mail: interest-help@jai-imageio.dev.java.net

amit_batra
Offline
Joined: 2005-04-03

Brian,

Could you please have a look at http://www.global360.com/support%5Fand%5Fservices/support/support%5Fimag... and see if you can find more information of how this can be achieved?

Thanks in advance,
Amit

Brian Burkhalter

At that link they define a private TIFF tag with tag number (tag ID) 32932. So
if you extract the image metadata object from the image

http://download.java.net/media/jai-imageio/javadoc/1.1-latest/com/sun/me...

you should be able to locate a TIFFField element whose "number" attribute has
the value 32932. This TIFFField should contain a TIFFBytes element containing
your annotations. The interpretation of those annotations is up to you.

Use of the TIFFDirectory and TIFFField classes should simlpify the task.

Finally, were you to create a TIFFTagSet containing a TIFFTag describing the
annotations tag and pass this to the reader via a TIFFImageReadParam this
might make your XML tree more readable but should not be necessary.

Brian

On Thu, 5 Oct 2006, jai-imageio@javadesktop.org wrote:

> Brian,
>
> Could you please have a look at http://www.global360.com/support%5Fand%5Fservices/support/support%5Fimag... and see if you can find more information of how this can be achieved?
>
> Thanks in advance,
> Amit
> [Message sent by forum member 'amit_batra' (amit_batra)]
>
> http://forums.java.net/jive/thread.jspa?messageID=160260
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: interest-unsubscribe@jai-imageio.dev.java.net
> For additional commands, e-mail: interest-help@jai-imageio.dev.java.net
>
>

----------------
Brian Burkhalter
Java Media, Imaging, and Graphics
Sun Microsystems, Inc.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
This email message is for the sole use of the intended recipient(s)
and may contain confidential and privileged information. Any
unauthorized review, use, disclosure or distribution is prohibited.
If you are not the intended recipient, please contact the sender by
reply email and destroy all copies of the original message.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

---------------------------------------------------------------------
To unsubscribe, e-mail: interest-unsubscribe@jai-imageio.dev.java.net
For additional commands, e-mail: interest-help@jai-imageio.dev.java.net