@robot_sherrick answered me this question, this is a follow-up question for his answer.
cv::SimpleBlobDetector
in Opencv 2.4 looks very exciting but I am not sure I can make it work for more detailed data extraction.
I have the following concerns:
- if this only returns center of the blob, I can't have an entire, labelled Mat, can I?
- how can I access the features of the detected blobs like area, convexity, color and so on?
- can I display an exact segmentation with this? (like with say, waterfall)
Here is a version that will allow you to get the last contours back, via the getContours() method. They will match up by index to the keypoints.
Then cpp
So the code should look something like this:
If you then want to have these keypoints highlighted on your image:
To access the info in the keypoints, you then just access each element like so:
Note: this has not been compiled and may have typos.