How to retrieve image tags

6 views (last 30 days)
Pavel Alekseychik
Pavel Alekseychik on 9 Mar 2012
Hello all,
I want to retrieve the tags that were attached to a .jpg image (the tags were attached from outside matlab using image visualization software). The function 'imageinfo' does show (in the very bottom of the list) that there are certain 'UnknownTags', which form a 2x1 structure. That looks correct, as there were indeed 2 tags attached to the image. Now, the question is, how to get those tags inside Matlab?
There aren't any tips anywhere. Please help! Thanks.
Pavel

Answers (2)

Walter Roberson
Walter Roberson on 9 Mar 2012
However, I do not presently see a method of determining the numeric value of the unknown tags that were stored. Perhaps you already know the numbers?
  1 Comment
Pavel Alekseychik
Pavel Alekseychik on 9 Mar 2012
Thanks for a quick reply,
But it seems that I have confused the 'tags' you associate with .tif images with the 'keywords' that can be attached to e.g. .jpg as well. Sorry. So, those are actually 'keywords', like the names you would mark on a photo. Can MatLab retrieve such a property of an image file?
Thanks again.

Sign in to comment.


Image Analyst
Image Analyst on 9 Mar 2012
If you're referring to exif information, use imfinfo().
  1 Comment
Pavel Alekseychik
Pavel Alekseychik on 9 Mar 2012
Thanks for the suggestion, I've tried that. Alhtough 'imfinfo' returns the 'UnknownTags', they seem to be something totally different.
What 'imfinfo' was actually able to show is the 'ImageDescription' of an image file. That's also of use, but the keywords I'm referring to are still something different.
To be exact, Windows Photo Gallery allows adding (a) keywords and (b) image description. I'm trying to get (a). Maybe MatLab simply doesn't have such powers?

Sign in to comment.

Categories

Find more on File Operations in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!