SimpleBlobDetector and blob contours

asked 2012-12-18 11:58:21 -0600

Gabriele gravatar image

Hi,

I'm adopting SimpleBlobDetector to detect a set of blobs, by calling:

vector<keypoint> keypoints; blobDetector->detect(frame,keypoints);

However, I can't find any method to retrieve and draw the contours associated to each blob. I can only draw their centroids, by using:

drawKeypoints(input, keypoints, output, CV_RGB(255,0,0),cv::DrawMatchesFlags::DEFAULT);

Digging into the SimpleBlobDetector source code, it seems to me that findContours is called, by the result is stored in a local variable, thereby not available with any public method. Am I right?

Thanks Gabriele

edit retag flag offensive close merge delete