このページの内容は最新ではありません。最新版の英語を参照するには、ここをクリックします。
imattributes
イメージ属性に関する情報
説明
は現在の Figure 内のイメージの情報を返します。現在の Figure にイメージが含まれていない場合、attrs
= imattributesimattributes
は空の配列を返します。
例
グレースケール イメージの属性の取得
グレースケール イメージをワークスペースに読み取ります。
h = imshow('liftingbody.png');
イメージの属性を取得します。
attrs = imattributes(h)
attrs = 6x2 cell
{'Width (columns)' } {'512' }
{'Height (rows)' } {'512' }
{'Class' } {'uint8' }
{'Image type' } {'intensity'}
{'Minimum intensity'} {'0' }
{'Maximum intensity'} {'255' }
トゥルーカラー イメージの属性の取得
h = imshow('gantrycrane.png');
im = imagemodel(h); attrs = imattributes(im)
attrs = 4x2 cell
{'Width (columns)'} {'400' }
{'Height (rows)' } {'264' }
{'Class' } {'uint8' }
{'Image type' } {'truecolor'}
入力引数
img
— イメージ
image
オブジェクト
イメージ。image
オブジェクトとして指定します。
imgmodel
— イメージ モデル
imagemodel
オブジェクト
イメージ モデル。imagemodel
オブジェクトとして指定します。
出力引数
attrs
— イメージの属性
文字ベクトルの cell 配列
イメージの属性。文字ベクトルの cell 配列として返されます。この cell 配列のサイズは、バイナリ イメージやトゥルーカラー イメージの場合は 4 行 2 列で、グレースケール (強度) イメージやインデックス付きイメージの場合は 6 行 2 列です。cell 配列の最初の列は属性名を含みます。2 列目には、属性値が格納されます。
次の表は、これらの属性を cell 配列に現れる順にリストします。
属性名 | 値 |
---|---|
| イメージ内の列数。 |
| イメージ内の行数。 |
|
|
| Image Processing Toolbox™ ソフトウェアで識別されるいずれかのイメージ タイプ: |
|
この属性は |
|
この属性は |
バージョン履歴
R2006a より前に導入
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)