<< rect2cart Utilities and Interactive Tools sub2cart >>

IPCV >> Utilities and Interactive Tools > rectangle

rectangle

Draw a rectangle on image

Syntax

imr = rectangle(im, rect, rgb)

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 rectangle.

imr :

imr is the the output image with the rectangle.

Examples

im = imread(fullpath(getIPCVpath() + "/images/baboon.png"));
imr = rectangle(im, [20, 30, 50, 100], [12 155 0]);
imshow(imr);

See also

Authors


Report an issue
<< rect2cart Utilities and Interactive Tools sub2cart >>