<< imconvexityDefects Structural Analysis and Shape Descriptors imfindContours >>

IPCV >> Structural Analysis and Shape Descriptors > imdrawContours

imdrawContours

Draw contours from the contour image.

Syntax

So = imdrawcontour(Slabel[, colormap[, thickness]])

Parameters

Slabel :

Input labeled image

colormap :

Colormap used to draw the contour

thickness :

Thickness of the contours

So :

Output contours in RGB

Description

This function used to draw the contours in RGB, with colormap and thickness.

Examples

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

See also

Authors

Bibliography

1. OpenCV 2.4 Online Documentation


Report an issue
<< imconvexityDefects Structural Analysis and Shape Descriptors imfindContours >>