imoverviewpanel() - Image Processing
hpanel = imoverviewpanel(hparent,himage) creates
an Overview tool panel associated with the image specified by the
handle himage, called the target image. himage must
be contained in a scroll panel created by imsrollpanel. hparent is
a handle to the figure or uipanel object that will contain the Overview
tool panel. imoverviewpanel returns hpanel,
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.
Syntax
hpanel = imoverviewpanel(hparent,himage)
Example
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])
Output / Return Value
Limitations
Alternatives / See Also
Reference