This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.


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 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.


To create an Overview tool in a separate figure, use imoverview. 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);
'Position',[0 0 1 .5])

Introduced before R2006a