Commit 76e4c200 authored by Vadim Pisarevsky's avatar Vadim Pisarevsky

fixed vector resize in the ORB detector

parent 0bf00036
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment