Fixed bug #1693. Also corrected default parameters for stitching.

This commit is contained in:
Alexey Spizhevoy
2012-03-19 11:51:18 +00:00
parent e50c0ed4c8
commit e87a07e2aa
3 changed files with 4 additions and 4 deletions

View File

@@ -351,9 +351,9 @@ void SurfFeaturesFinder::find(const Mat &image, ImageFeatures &features)
}
else
{
vector<float> descriptors;
Mat descriptors;
(*surf)(gray_image, Mat(), features.keypoints, descriptors);
features.descriptors = Mat(descriptors, true).reshape(1, (int)features.keypoints.size());
features.descriptors = descriptors.reshape(1, (int)features.keypoints.size());
}
}