<< Spatial Transformations Spatial Transformations imcropm >>

IPCV - Image Processing and Computer Vision Toolbox for Scilab >> Spatial Transformations > imcrop

imcrop

Crop image

Syntax

subim = imcrop(im, rect)

Parameters

im :

An image, which can be one channel or three channel image.

rect :

rect=[x, y, width, height] is a vector. (x, y) is the top-left corner of the rentangle.

subim :

subim is the sub-region of the image im .

Description

Crop image at regin rect to subim.

Examples

im = imread(fullpath(getIPCVpath() + "/images/baboon.png"));
subim = imcrop(im, [20, 30, 200, 300]);
imshow(subim);

See also

Authors


Report an issue
<< Spatial Transformations Spatial Transformations imcropm >>