Fix shadow parameter.

This commit is contained in:
Mathieu Barnachon 2013-11-27 11:36:34 +01:00
parent 99c8b8c016
commit b413bcbba4

View File

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