Is there a way in MATLAB 7.10 (R2010a) to find out if the "Tag" for a TIFF file is empty?
3 ビュー (過去 30 日間)
古いコメントを表示
I am using the getTag function in the Tiff class to query the "Tag" field. The function works fine. But if the Tag is empty, my code terminates with an error. I want to know if there is a way to find out if the field is empty, and if it is not, then query its contents.
0 件のコメント
回答 (1 件)
Adity
2011 年 1 月 18 日
There is no direct way to use the Tiff object to query whether the Tag field is present or not. This is because the Tiff object is really just a thin wrapper around the libtiff library, which does not offer a function for inquiring as to whether a tag is present. One finds out only by asking for the value, and this means one would have to use try/catch with getTag on the Tiff object.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Image Data についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!