Image Processing Toolbox    

Image Cropping

The function imcrop extracts a rectangular portion of an image. You can specify the crop rectangle through input arguments, or select it with a mouse.

If you call imcrop without specifying the crop rectangle, the cursor changes to a cross hair when it is over the image. Click on one corner of the region you want to select, and while holding down the mouse button, drag across the image. imcrop draws a rectangle around the area you are selecting. When you release the mouse button, imcrop creates a new image from the selected region.

In this example, you display an image and call imcrop. The rectangle you select is shown in red.

Now display the cropped image.

If you do not provide any output arguments, imcrop displays the image in a new figure.


 Image Rotation Neighborhood and Block Operations