このページの内容は最新ではありません。最新版の英語を参照するには、ここをクリックします。
imhandles
すべての Image オブジェクトを取得
説明
例
親のグラフィックス オブジェクトからのイメージの取得
イメージを表示します。
imshow('kobi.png')
現在の座標軸の image オブジェクトを返します。
imageobj = imhandles(gca)
imageobj = Image with properties: CData: [1224x1632x3 uint8] CDataMapping: 'direct' Use GET to show all properties
同じ Figure に 2 つのイメージを表示し、imhandles
を使用して、Figure の両方の image オブジェクトを取得します。
figure subplot(1,2,1) imshow('kobi.png') subplot(1,2,2) imshow('sherlock.jpg')
imageobjs = imhandles(gcf)
imageobjs = 2x1 Image array: Image Image
imageobjs
配列の最初のイメージを検査します。
imageobjs(1)
ans = Image with properties: CData: [640x960x3 uint8] CDataMapping: 'direct' Use GET to show all properties
入力引数
hparent
— 親のグラフィックス オブジェクト
Figure | axes | uipanel | イメージ
親のグラフィックス オブジェクト。figure、axes、uipanel、または image グラフィックス オブジェクトのハンドルとして指定します。
出力引数
バージョン履歴
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)