Crop image
subim = imcrop(im, rect)
An image, which can be one channel or three channel image.
rect=[x, y, width, height] is a vector. (x, y) is the top-left corner of the rentangle.
subim is the sub-region of the image im .
Crop image at regin rect to subim.
im = imread(fullpath(getIPCVpath() + "/images/baboon.png")); subim = imcrop(im, [20, 30, 200, 300]); imshow(subim); | ![]() | ![]() |