Merge pull request #722 from gpsinghsandhu:blob-detector-cpp

pull/746/merge
Andrey Kamaev 12 years ago committed by OpenCV Buildbot
commit de848a08d3
  1. 3
      modules/features2d/src/blobdetector.cpp

@ -260,8 +260,11 @@ void SimpleBlobDetector::findBlobs(const cv::Mat &image, const cv::Mat &binaryIm
center.radius = (dists[(dists.size() - 1) / 2] + dists[dists.size() / 2]) / 2.;
}
if(moms.m00 == 0.0)
continue;
centers.push_back(center);
#ifdef DEBUG_BLOB_DETECTOR
// circle( keypointsImage, center.location, 1, Scalar(0,0,255), 1 );
#endif

Loading…
Cancel
Save