Image Processing Toolbox    
zoom

Zoom in and out of an image

Syntax

Description

zoom on turns on interactive zooming for the current figure. When zooming is enabled, clicking the mouse on a point within an axes changes the axes limits by a factor of 2, to either zoom in on or out from the point:

Clicking and dragging over an axes when interactive zooming is enabled draws a rubber-band box. When the mouse button is released, the axes zoom in to the region enclosed by the rubber-band box.

Double-clicking within an axes returns the axes to its initial zoom setting.

zoom off turns zoom off in the current figure.

zoom out returns the plot to its initial zoom setting.

zoom reset remembers the current zoom setting as the initial zoom setting. Later calls to zoom out, or double-clicks when interactive zoom mode is enabled, return to this zoom level.

zoom toggles the interactive zoom status.

zoom xon and zoom yon set zoom on for the x- and y-axis, respectively.

zoom(factor) zooms in by the specified factor, without affecting the interactive zoom mode. By default, factor is 2. A factor between 0 and 1 specifies zooming out by 1/factor.

zoom(fig,option) applies the zoom command to the figure specified by fig. option is a string containing any of the above arguments. If you do not specify a figure, zoom works on the current figure.

See Also

imcrop


 ycbcr2rgb Working with Function Functions