Draw contours from the contour image.
So = imdrawcontour(Sc) So = imdrawcontour(Sc,colormap) So = imdrawcontour(Sc,colormap,thickness)
Input contour image
Colormap used to draw the contour
Thickness of the contours
Output contours in RGB
This function used to draw the contours in RGB, with colormap and thickness.
S = imread(fullpath(getIPCVpath() + "/images/coins_gray.jpg")); Sbw = im2bw(S,0.5); Sc = imfindContours(Sbw); So = imdrawContours(Sc); imshow(So); | ![]() | ![]() |
1. OpenCV 2.4 Online Documentation