Ask Your Question
3

Does OpenCV provide Connected Component labeling method for binary image?

asked 2012-08-27 01:41:59 -0500

AsanWolf gravatar image

Does OpenCV provide Connected Component labeling method for binary image? Who can help me?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
4

answered 2012-08-27 01:52:30 -0500

sammy gravatar image

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

edit flag offensive delete link more

Comments

thanks,but I need to collect all the piexls into a vecter if they are the same connected component blobs respectively.

AsanWolf gravatar imageAsanWolf ( 2012-08-27 02:16:26 -0500 )edit
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2012-08-27 01:41:59 -0500

Seen: 5,502 times

Last updated: Aug 27 '12