Ask Your Question
1

SimpleBlobDetector and blob contours

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

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

1 answer

Sort by ยป oldest newest most voted
0

answered 2013-01-27 15:59:14 -0500

Exactly. I've got exactly the same question to ask. It seems there used to be a function called detectEx, which is able to return the contours directly... Weird...

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

Stats

Asked: 2012-12-18 11:58:21 -0500

Seen: 32,150 times

Last updated: Jan 27 '13