You can use the imcrop function in Matlab CropIm = imcrop (I, rectangle); rectangle is a four-position position vector [width xmin ymin] that indicates the size and position of the crop rectangle.
Im = imread('test.tif');
Im2 = imcrop(Im,[75 68 130 112]);
imshow(Im), figure, imshow(Im2)
source
share