I am implementing a simple computer vision system in java. It extracts shapes from an image. Which are generally circular or oval in shape. I have it working to the point where it can create a binary image consisting of only the features I want to analyse. I can find the area of a single feature easily enough by counting the number of white pixels in the image. However if there are multiple features it would find the area of all the features combined.
I was wondering if someone would know how to implement a method to extract/detect multiple features, then I could find the area etc on each easily enough.
I have found information on how to do this with openCV, however I cant find information on how to actually implement a method for myself, or even the theory behind how to achieve it.. It doesnt need to be terribly advanced, even a simple example would be fine.
Any advice would be greatly appreciated!