<< ntsc2rgb SIVP - Scilab Image and Video Processing Toolbox rgb2gray >>

SIVP - Scilab Image and Video Processing Toolbox >> SIVP - Scilab Image and Video Processing Toolbox > rectangle

rectangle

Draw a rectangle on image

Calling Sequence

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(getSIVPpath() + "/images/lena.png"));
imr = rectangle(im, [20, 30, 50, 100], [12 155 0]);
imshow(imr);

Authors

Availability

The latest version of SIVP can be found at

http://sivp.sf.net

See Also

<< ntsc2rgb SIVP - Scilab Image and Video Processing Toolbox rgb2gray >>