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 for image displayed in scroll panel

Use the imoverview function to create an Overview tool. The Overview tool is a navigation aid for images displayed in a scroll panel.

imoverview creates the Overview tool in a separate figure window that displays the target image in its entirety, scaled to fit. Over this scaled version of the 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.


htool = imoverview(___)


imoverview(himage) creates an Overview tool associated with the image specified by the handle himage, called the target image. The target image must be contained in a scroll panel created by imscrollpanel.

htool = imoverview(___) returns htool, a handle to the Overview tool figure.


Create Overview Tool

Create a figure, disabling the toolbar and menubar, because the toolbox navigation tools are not compatible with the standard MATLAB® zoom and pan tools. Then create a scroll panel in the figure and use scroll panel API functions to set the magnification.

hFig = figure('Toolbar','none','Menubar','none');
hIm = imshow('tape.png');
hSP = imscrollpanel(hFig,hIm);
api = iptgetapi(hSP);
api.setMagnification(2) % 2X = 200%

Input Arguments

collapse all

Handle to image, specified as a handle.

Output Arguments

collapse all

Handle to Overview tool figure, returned as a handle.


  • To create an Overview tool that can be embedded in an existing figure or uipanel object, use imoverviewpanel.

Introduced before R2006a

Was this topic helpful?