www.gusucode.com > images 案例代码 matlab源码程序 > images/CropImageBySpecifyingCropRectangleExample.m
%% Crop Image By Specifying Crop Rectangle % %% % Read image into the workspace. % Copyright 2015 The MathWorks, Inc. I = imread('circuit.tif'); %% % Crop image, specifying crop rectangle. I2 = imcrop(I,[75 68 130 112]); %% % Display original image and cropped image. subplot(1,2,1) imshow(I) title('Original Image') subplot(1,2,2) imshow(I2) title('Cropped Image')