SIVP Toolbox
Last update : September, 2008
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(SCI + '/contrib/sivp/images/lena.png');
imr = rectangle(im, [20, 30, 50, 100]);
imshow(imr);
Authors
-
Jia Wu <jiawu83[at]gmail.com>
Availability
The latest version of SIVP can be found at
http://sivp.sourceforge.net
See Also