Get current figure containing image
hfig = imgcf
hfig = imgcf returns the
current figure that contains an image. The figure may be a regular
figure window that contains at least one image or an Image Tool window.
If none of the figures currently open contains an image,
a new figure.
imgcf can be useful in getting the figure
used by the Image Tool. You cannot retrieve the tool figure using
imtool rice.png cmap = copper(256); set(imgcf,'Colormap',cmap)