bugfix: blobdetector was putting incorrect diameter value in keypoints

pull/2328/head
Rohit Girdhar 11 years ago
parent 863e9c699a
commit a4b5641836
  1. 2
      modules/features2d/src/blobdetector.cpp

@ -336,7 +336,7 @@ void SimpleBlobDetector::detectImpl(InputArray image, std::vector<cv::KeyPoint>&
normalizer += centers[i][j].confidence; normalizer += centers[i][j].confidence;
} }
sumPoint *= (1. / normalizer); 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); keypoints.push_back(kpt);
} }
} }

Loading…
Cancel
Save