Ask Your Question

Connected component analysis using OpenCV in C

asked 2014-06-02 03:53:01 -0500

parvathy gravatar image

updated 2020-11-06 05:43:03 -0500

Can anybody please give me the idea of labeling(number label) connected components in a binary image?The image components are having fiber like shape.I also need to find out the number of connected components in the image and want to display each connected component according to its number label. Is there any function in OpenCV similar to bwconncomp in MATLAB that contains a field called pixelidxlist which can store indices of pixels of the connected component?

Thanks in advance

edit retag flag offensive close merge delete


1 answer

Sort by ยป oldest newest most voted

answered 2017-12-09 08:18:31 -0500

updated 2017-12-09 08:42:01 -0500

berak gravatar image

Hi, i confronted same problem. The code of cca you have asked for c but i solved this in cpp. I hope this code helps, for you and anyone come to this page with similar problem.

edit flag offensive delete link more

Question Tools


Asked: 2014-06-02 03:53:01 -0500

Seen: 8,670 times

Last updated: Dec 09 '17