fixed vector resize in the ORB detector

pull/13383/head
Vadim Pisarevsky 14 years ago
parent 0bf00036a8
commit 76e4c2007b
  1. 2
      modules/features2d/src/orb.cpp

@ -554,7 +554,7 @@ void ORB::operator()(const cv::Mat &image, const cv::Mat &mask, std::vector<cv::
else
{
// Cluster the input keypoints
all_keypoints.reserve(params_.n_levels_);
all_keypoints.resize(params_.n_levels_);
for (std::vector<cv::KeyPoint>::iterator keypoint = keypoints_in_out.begin(), keypoint_end = keypoints_in_out.end(); keypoint
!= keypoint_end; ++keypoint)
all_keypoints[keypoint->octave].push_back(*keypoint);

Loading…
Cancel
Save