www.gusucode.com > images 案例代码 matlab源码程序 > images/GetHandleToTargetImageExample.m
%% Get Handle to Target Image % This example shows several ways to get the handle to the image displayed % in a figure window, referred to as the _target_ _image_. This can be % useful when creating apps with the modular interactive tools. %% % Get the handle when you initially display the image in a figure window % using the |imshow| syntax that returns a handle. hfig = figure; himage = imshow('moon.tif') %% % Get the handle after you have displayed the image in a figure window % using the |imhandles| function. You must specify a handle to the figure % window as a parameter. himage2 = imhandles(hfig)