<< imconvexHull Structural Analysis and Shape Descriptors imfindcontours >>

IPCV - Image Processing and Computer Vision Toolbox for Scilab >> Structural Analysis and Shape Descriptors > imdrawcontours

imdrawcontours

Draw contours from the contour image.

Syntax

So = imdrawcontour(Sc)
So = imdrawcontour(Sc,colormap)
So = imdrawcontour(Sc,colormap,thickness)

Parameters

Sc :

Input contour 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);
So = imdrawContours(Sc);
imshow(So);

See also

Authors

Bibliography

1. OpenCV 2.4 Online Documentation


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