Get current figure containing image
Open an image in an Image Tool window.
I = imread('strawberries.jpg'); imtool(I)
Use the handle of a figure containing an Image Tool window to center the window on the screen.
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)
imgcf can be useful in getting the figure used by the Image
Tool. You cannot retrieve the tool figure using