<< imhitmiss Morphological Operations imopen >>

IPCV >> Morphological Operations > imlabel

imlabel

Find blobs in an image

Syntax

[imout,n] = imlabel(imin)

Parameters

imin :

Source Image

n :

Number of detected objects

imout :

Labeled Image

Description

This function find all components on an image.

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,jet(n));

See also

Authors


Report an issue
<< imhitmiss Morphological Operations imopen >>