<< impixelval Utilities and Interactive Tools imroi >>

IPCV - Image Processing and Computer Vision Toolbox for Scilab >> Utilities and Interactive Tools > imrects

imrects

Draw Bounding Boxes on An Image

Syntax

imrects(BB,rgb)

Parameters

BB :

Bounding Boxes, 4 by M, in which each column representing 1 box in [x,y,w,h].

rgb :

RGB values with value from 0 to 255 in [R,G,B] format

Description

This function draw rectangles on the image using given bounding boxes paremeters.

Examples

A = imread(fullpath(getIPCVpath() + "/images/coins.png"));
Agray = rgb2gray(A);
Abin = im2bw(Agray,imgraythresh(Agray));
se = imcreatese('ellipse',15,15);
A_close = imclose(~Abin,se);
[A_labeled,n] = imlabel(A_close);
[Area, BB] = imblobprop(A_labeled);
imshow(A);
imrects(BB,[255 0 0]);

See also

Authors


Report an issue
<< impixelval Utilities and Interactive Tools imroi >>