Ask Your Question
0

Connected component analysis using OpenCV in C

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

parvathy gravatar image

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

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

Comments

1 answer

Sort by ยป oldest newest most voted
0

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

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

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.

https://gist.github.com/yunusemreayha...

edit flag offensive delete link more

Question Tools

Stats

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

Seen: 8,888 times

Last updated: Dec 09 '17