Is it possible to get a labeled image from a binary image using OpenCV with an in-built C API
I am aware of the function connectedComponents in OpenCV library which can give me labeled image from a binary image.
Since i want to write my code purely in C and without any wrappers, is it possible to achieve the same using OpenCV?
I am also aware of functions such as findContours and floodFill, but i am not able to achieve the proper labeling of my binary image which is provided by connectedComponents.