numberOfStrips
イメージ内のストリップの総数
説明
例
イメージ内のストリップ数の判定
TIFF ファイルの 2 番目のイメージにあるストリップの数を判定します。
example.tif
ファイルの Tiff
オブジェクトを作成します。
t = Tiff('example.tif','r');
Tiff
オブジェクトの作成に際し、現在のイメージ ファイル ディレクトリは TIFF ファイル内の最初のイメージをポイントします。2 番目のイメージのデータを取得するには、イメージ ファイル ディレクトリが 2 番目のイメージをポイントするように変更します。
nextDirectory(t)
イメージ内のストリップの数を取得します。
if ~isTiled(t) % if the image does not have a tiled layout numStrips = numberOfStrips(t) end
numStrips = 7
Tiff
オブジェクトを閉じます。
close(t);
アルゴリズム
参照
この関数は、LibTIFF C API の関数 TIFFNumberOfStrips
に相当します。この関数を使用するには、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)