ヘルプ センターヘルプ センター
イメージを含む現在の Figure を取得
fig = imgcf
例
fig = imgcf は、イメージを含む現在の Figure を返します。Figure は、少なくとも 1 つのイメージを含む正規の Figure ウィンドウ またはイメージ ツールのウィンドウです。
fig
現在開いており、かつイメージを含む Figure がない場合、imgcf は新規の Figure を作成します。
imgcf
すべて折りたたむ
イメージ ツールのウィンドウでイメージを開きます。
I = imread('strawberries.jpg'); imtool(I)
イメージ ツールのウィンドウを含む Figure のハンドルを使用して、ウィンドウを画面の中心に配置します。
sz = get(groot,'ScreenSize'); pos = get(imgcf,'Position'); pos = [(sz(3)-pos(3))/2 (sz(4)-pos(4))/2 pos(3) pos(4)]; set(imgcf,'Position',pos)
イメージを含む現在の Figure。figure オブジェクトとして返されます。
figure
imgcf は、イメージ ツールで使用される Figure の取得に役立ちます。ツールの Figure は gcf では取得できません。
gcf
R2006a より前に導入
gca | gcf | imgca | imhandles
gca
imgca
imhandles
次の 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:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office