How to retrieve image tags

4 次查看(过去 30 天)
Pavel Alekseychik
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

回答(2 个)

Walter Roberson
Walter Roberson 2012-3-9
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 个评论
Pavel Alekseychik
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.

请先登录,再进行评论。


Image Analyst
Image Analyst 2012-3-9
If you're referring to exif information, use imfinfo().
  1 个评论
Pavel Alekseychik
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?

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 File Operations 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by