bugfix: blobdetector was putting incorrect diameter value in keypoints
authorRohit Girdhar <rohit@iiith>
Wed, 12 Feb 2014 16:59:04 +0000 (22:29 +0530)
committerRohit Girdhar <rohit@iiith>
Wed, 12 Feb 2014 16:59:04 +0000 (22:29 +0530)
modules/features2d/src/blobdetector.cpp

index 2368591..69e0585 100644 (file)
@@ -336,7 +336,7 @@ void SimpleBlobDetector::detectImpl(InputArray image, std::vector<cv::KeyPoint>&
             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);
     }
 }