<< Structural Analysis and Shape Descriptors Structural Analysis and Shape Descriptors imconvexHull >>

IPCV >> Structural Analysis and Shape Descriptors > imcontour2label

imcontour2label

Create a labeled image from the contours list

Syntax

So = imcontour2label(S,Sc)

Parameters

S :

Input image

Sc :

Contours list

So :

Output labeled image

Description

This function used to create a labeled image from a contours list

Examples

S = imread(fullpath(getIPCVpath() + "/images/coins_gray.jpg"));
Sbw = im2bw(S,0.5);
Sc = imfindContours(Sbw);
So = imcontour2label(S,Sc);
imshow(So,rainbow(size(Sc)));

See also

Authors

Bibliography

1. OpenCV 2.4 Online Documentation


Report an issue
<< Structural Analysis and Shape Descriptors Structural Analysis and Shape Descriptors imconvexHull >>