setDirectory
指定した IFD を現在の IFD に設定
説明
例
TIFF ファイル内の複数のイメージ間での移動
TIFF ファイル内のイメージ ファイル ディレクトリ (IFD) で移動し、複数の IFD からタグまたはイメージ データを取得します。
3 つの IFD があるファイル example.tif
の Tiff
オブジェクトを作成し、現在の IFD のディレクトリ インデックス番号をファイル内に表示します。
t = Tiff('example.tif','r'); currentDirectory(t)
ans = 1
現在の IFD を 2
に変更し、ImageDescription
タグの値を取得します。
setDirectory(t,2);
getTag(t,'ImageDescription')
ans = 'First image converted to grayscale.'
現在の IFD を 3
に変更し、ImageDescription
タグの値を取得します。
setDirectory(t,3);
getTag(t,'ImageDescription')
ans = 'Credit: Jeff Mather and Alex Taylor.'
Tiff
オブジェクトを閉じます。
close(t);
入力引数
アルゴリズム
参照
この関数は、LibTIFF C API の関数 TIFFSetDirectory
に相当します。この関数を使用するには、TIFF の仕様とテクニカル ノートに精通していなければなりません。このドキュメンテーションは LibTIFF - TIFF Library and Utilities で参照してください。
バージョン履歴
R2009b で導入
MATLAB コマンド
次の MATLAB コマンドに対応するリンクがクリックされました。
コマンドを MATLAB コマンド ウィンドウに入力して実行してください。Web ブラウザーは MATLAB コマンドをサポートしていません。
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)