How to retrieve image tags

4 ビュー (過去 30 日間)
Pavel Alekseychik
Pavel Alekseychik 2012 年 3 月 9 日
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
Pavel Alekseychik 2012 年 3 月 9 日
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
Pavel Alekseychik 2012 年 3 月 9 日
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 Center および File ExchangeFile Operations についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by