From a4b5641836c172b4f5abe9b4334a7de8873677c5 Mon Sep 17 00:00:00 2001 From: Rohit Girdhar Date: Wed, 12 Feb 2014 22:29:04 +0530 Subject: [PATCH] bugfix: blobdetector was putting incorrect diameter value in keypoints --- modules/features2d/src/blobdetector.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/features2d/src/blobdetector.cpp b/modules/features2d/src/blobdetector.cpp index 2368591d9b..69e058555d 100644 --- a/modules/features2d/src/blobdetector.cpp +++ b/modules/features2d/src/blobdetector.cpp @@ -336,7 +336,7 @@ void SimpleBlobDetector::detectImpl(InputArray image, std::vector& normalizer += centers[i][j].confidence; } sumPoint *= (1. / normalizer); - KeyPoint kpt(sumPoint, (float)(centers[i][centers[i].size() / 2].radius)); + KeyPoint kpt(sumPoint, (float)(centers[i][centers[i].size() / 2].radius) * 2.0f); keypoints.push_back(kpt); } }