Added drawing of a new image for debugging of the SimpleBlobDetector class.

pull/13383/head
Ilya Lysenkov 14 years ago
parent 3474e37037
commit 5a3e7d041f
  1. 12
      modules/features2d/src/blobdetector.cpp

@ -302,4 +302,16 @@ void SimpleBlobDetector::detectImpl(const cv::Mat& image, std::vector<cv::KeyPoi
KeyPoint kpt(sumPoint, (float)params.defaultKeypointSize);
keypoints.push_back(kpt);
}
#ifdef DEBUG_BLOB_DETECTOR
namedWindow("keypoints", CV_WINDOW_NORMAL);
Mat outImg = image.clone();
for(size_t i=0; i<keypoints.size(); i++)
{
circle(outImg, keypoints[i].pt, 2, Scalar(255, 0, 255), -1);
}
//drawKeypoints(image, keypoints, outImg);
imshow("keypoints", outImg);
waitKey();
#endif
}

Loading…
Cancel
Save