|On this page…|
If an image is large or viewed at a large magnification, the Image Viewer displays only a portion of the entire image and automatically includes scroll bars to allow navigation around the image. To determine which part of the image is currently visible in the Image Viewer, use the Overview tool. The Overview tool displays the entire image, scaled to fit. Superimposed over this view of the image is a rectangle, called the detail rectangle. The detail rectangle shows which part of the image is currently visible in the Image Viewer. You can change the portion of the image visible in the Image Viewer by moving the detail rectangle over the image in the Overview tool.
The following sections provide more information about using the Overview tool.
You can start the Overview tool by clicking the Overview button in the Image Viewer toolbar or by selecting the Overview option from the Image ViewerTools menu. You can also change the preferences, so the Overview tool will open automatically when you open the Image Viewer. For more information on setting preferences, see iptprefs.
Start the Overview tool by clicking the Overview button in the Image Viewer toolbar or by selecting Overview from the Tools menu. The Overview tool opens in a separate window containing a view of the entire image, scaled to fit.
If the Overview tool is already active, clicking the Overview button brings the tool to the front of the windows open on your screen.
By default, the color of the detail rectangle in the Overview tool is blue. You can change the color of the rectangle to achieve better contrast with the predominant color of the underlying image. To do this, right-click anywhere inside the boundary of the detail rectangle and select a color from the Set Color option on the context menu.
To get the current position and size of the detail rectangle, right-click anywhere inside it and select Copy Position from the context menu. You can also access this option from the Edit menu of the Overview tool.
This option copies the position information to the clipboard. The position information is a vector of the form [xmin ymin width height]. You can paste this position vector into the MATLAB® workspace or another application.
You can print the view of the image displayed in the Overview tool. Select the Print to Figure option from the Overview tool File menu. See Print Images for more information.
To change the portion of the image displayed in the Image Viewer, use the Pan tool to move the image displayed in the window. This is called panning the image.
Note As you pan the image in the Image Viewer, the Overview tool updates the position of the detail rectangle — see Explore Images Using the Overview Tool.
To enlarge an image to get a closer look or shrink an image to see the whole image in context, use the Zoom buttons on the toolbar. (You can also zoom in or out on an image by changing the magnification — see Specify Image Magnification in Image Viewer or by using the Ctrl+Plus or Ctrl+Minus keys. Note that these are the Plus(+) and Minus(-) keys on the numeric keypad of your keyboard.)
Click the appropriate magnifying glass button in the Image Viewer toolbar or select the Zoom In or Zoom Out option in the Tools menu. When the Zoom tool is active, a checkmark appears next to the appropriate Zoom selection in the menu.
Move the pointer over the image you want to zoom in or out on, using the mouse. The pointer changes to the appropriate magnifying glass icon. With each click, the Image Viewer changes the magnification of the image, centering the new view of the image on the spot where you clicked.
When you zoom in or out on an image, the magnification value displayed in the magnification edit box changes and the Overview window updates the position of the detail rectangle.
To enlarge an image to get a closer look or to shrink an image to see the whole image in context, you can use the magnification edit box, shown in the following figure. (You can also use the Zoom buttons to enlarge or shrink an image. See Zoom Images in the Image Viewer App for more information.)
To change the magnification of an image,
You can also specify a magnification by clicking the menu associated with the magnification edit box and selecting from a list of preset magnifications. If you choose the Fit to Window option, the Image Viewer scales the image so that the entire image is visible.