<< imblackhat Morphological Operations imclose >>

IPCV - Image Processing and Computer Vision Toolbox for Scilab >> Morphological Operations > imblobprop

imblobprop

Calculate blobs properties from labeled image

Syntax

[A, BB, ctr] = imblobprop(imin)

Parameters

imin :

Source Image

A :

Area of the blob

BB :

Bounding box for the blob

ctr :

Centroid of the blob

Description

This function find components properties, for now, area and bounding box.

Examples

A = imread(fullpath(getIPCVpath() + "/images/coins_gray.jpg"));
A_edge = edge(A,'canny');
se = imcreatese('ellipse',15,15);
A_dilate = imdilate(A_edge,se);
[A_labeled,n] = imlabel(A_dilate);
imshow(A_labeled,jetcolormap(n));
[Area, BB, ctr] = imblobprop(A_labeled);
imrects(BB,[255,0,0]);

See also

Authors


Report an issue
<< imblackhat Morphological Operations imclose >>