MATLAB ヘルプ センター
このページの内容は最新ではありません。最新版の英語を参照するには、ここをクリックします。
すべての Image オブジェクトを取得
himage = imhandles(hparent)
himage = imhandles(hparent) は、先祖が hparent である image オブジェクトをすべて返します。imhandles は、image オブジェクトの Figure がそれらの親と同じでない場合、エラーを返します。imhandles はカラー バーを無視します。
himage
hparent
imhandles
例
すべて折りたたむ
イメージを表示します。
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
imageobjs(1)
ans = Image with properties: CData: [640x960x3 uint8] CDataMapping: 'direct' Use GET to show all properties
親のグラフィックス オブジェクト。figure、axes、uipanel、または image グラフィックス オブジェクトのハンドルとして指定します。
先祖が hparent である image オブジェクト。イメージまたはイメージの配列として返されます。
R2006a より前に導入
imgca | imgcf
imgca
imgcf
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Web サイトの選択
Web サイトを選択すると、翻訳されたコンテンツにアクセスし、地域のイベントやサービスを確認できます。現在の位置情報に基づき、次のサイトの選択を推奨します:
また、以下のリストから Web サイトを選択することもできます。
最適なサイトパフォーマンスの取得方法
中国のサイト (中国語または英語) を選択することで、最適なサイトパフォーマンスが得られます。その他の国の MathWorks のサイトは、お客様の地域からのアクセスが最適化されていません。
南北アメリカ
ヨーロッパ
アジア太平洋地域
最寄りの営業オフィスへのお問い合わせ