Overview tool panel for image displayed in scroll panel
hpanel = imoverviewpanel(hparent,himage)
hpanel = imoverviewpanel(hparent,himage) creates
an Overview tool panel associated with the image specified by the
himage, called the target image.
be contained in a scroll panel created by
a handle to the figure or uipanel object that will contain the Overview
a handle to the Overview tool uipanel object.
The Overview tool is a navigation aid for images displayed in
a scroll panel.
imoverviewpanel creates the tool
in a uipanel object that can be embedded in a figure or uipanel object.
The tool displays the target image in its entirety, scaled to fit.
Over this scaled version of image, the tool draws a rectangle, called
the detail rectangle, that shows the portion of the target image that
is currently visible in the scroll panel. To view portions of the
image that are not currently visible in the scroll panel, move the
detail rectangle in the Overview tool.
To create an Overview tool in a separate figure, use
When created using
imoverview, the Overview tool
includes zoom-in and zoom-out buttons.
Create an Overview tool that is embedded in the same figure that contains the target image.
hFig = figure('Toolbar','none','Menubar','none'); hIm = imshow('tissue.png'); hSP = imscrollpanel(hFig,hIm); set(hSP,'Units','normalized','Position',[0 .5 1 .5]) hOvPanel = imoverviewpanel(hFig,hIm); set(hOvPanel,'Units','Normalized',... 'Position',[0 0 1 .5])