Commit b413bcbb authored by Mathieu Barnachon's avatar Mathieu Barnachon

Fix shadow parameter.

parent 99c8b8c0
...@@ -149,14 +149,14 @@ void BOWImgDescriptorExtractor::compute( const Mat& image, std::vector<KeyPoint> ...@@ -149,14 +149,14 @@ void BOWImgDescriptorExtractor::compute( const Mat& image, std::vector<KeyPoint>
return; return;
// Compute descriptors for the image. // Compute descriptors for the image.
Mat descriptors; Mat _descriptors;
dextractor->compute( image, keypoints, descriptors ); dextractor->compute( image, keypoints, _descriptors );
compute( descriptors, imgDescriptor, pointIdxsOfClusters ); compute( _descriptors, imgDescriptor, pointIdxsOfClusters );
// Add the descriptors of image keypoints // Add the descriptors of image keypoints
if (descriptors) { if (descriptors) {
*descriptors = descriptors.clone(); *descriptors = _descriptors.clone();
} }
} }
......
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