Crop image in matlab

I want to crop the image from a specific line forward. Please help me how can I do this. I am new to Matlab.

+5
source share
3 answers

See this: http://www.mathworks.com/help/techdoc/creating_plots/f9-47085.html

The graph editor icon is displayed on the screen, where you see your graph, it should look like this: Expanded graph editor button

Click it, you will get a large graph editor, now try clicking on a chart or one of the functions, in the lower right part you can set ranges, this crop the image.

+4
source

Matlab.

Matlab, MxNx3. RGB . , , , :

cropped_image = image(RowStart:RowEnd,ColStart:ColEnd,:);
+8

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)
+2
source

All Articles