Read image into the workspace.
Open Crop Image tool associated with this image. Specify a variable in which to store the cropped image. The example includes the optional return value
rect
in which imcrop
returns the four-element position vector of the rectangle you draw.
When you move the cursor over the image, it changes to a cross-hairs . The Crop Image tool blocks the MATLAB command line until you complete the operation.
Using the mouse, draw a rectangle over the portion of the image that you want to crop.
Perform the crop operation by double-clicking in the crop rectangle or selecting Crop Image on the context menu.
very useful post
ReplyDelete