Connected component analysis using OpenCV in C
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
Does this thread help: http://stackoverflow.com/questions/12688524/connected-components-in-opencv
http://stackoverflow.com/questions/17565180/opencv-how-to-find-a-list-of-connected-components-in-a-binary-image