Merge pull request #2328 from rohitgirdhar:bugfix_blobdetector_kpt_radius

pull/2337/merge
Roman Donchenko 11 years ago committed by OpenCV Buildbot
commit cfcf07acfa
  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;
}
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);
}
}

Loading…
Cancel
Save