Does OpenCV provide Connected Component labeling method for binary image?
Does OpenCV provide Connected Component labeling method for binary image? Who can help me?
In OpenCV you can use the cv::FindContours(). It offers a similar result (the contours of the connected component blobs).
It's not an indentical replacement, but you can extract all the needed information from here.
You may also want to know about cv::Moments, which calculates statistics about your blobs, and cv::contourArea() - for area, and cv::arcLength() for perimeter
Asked: 2012-08-27 01:41:59 -0600
Seen: 6,729 times
Last updated: Aug 27 '12