nextDirectory
次の IFD を現在の IFD にする
説明
例
TIFF ファイル内の次のイメージへの移動
現在の IFD にあるイメージの Photometric
タグに関する情報を取得し、ファイル内の次のイメージに移動して、次のイメージの同じタグを調べます。
example.tif
ファイルの Tiff
オブジェクトを作成します。
t = Tiff('example.tif','r');
現在のディレクトリ番号を表示し、現在の IFD から Photometric
タグの値を取得します。Photometric
タグの値 2
は、TIFF 仕様の色空間 RGB
に対応します。
dirNum = currentDirectory(t)
dirNum = 1
value = getTag(t,'Photometric')
value = 2
次の IFD に移動します。
nextDirectory(t);
現在のディレクトリ番号を表示して、この IFD から Photometric
タグの値を取得します。Photometric
タグの値 1
は、TIFF 仕様の色空間 MinIsBlack
に対応します。
dirNum = currentDirectory(t)
dirNum = 2
value = getTag(t,'Photometric')
value = 1
Tiff
オブジェクトを閉じます。
close(t);
アルゴリズム
参照
この関数は、LibTIFF C API の関数 TIFFReadDirectory
に相当します。この関数を使用するには、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)