Finds contours in a binary image.
Sc = imfindcontour(Sbw)
Input binary image
Output labelled image with detected contours, each contour labelled with same indices.
This function used to find the contours of a binary image, returned in labelled image format.
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