From b413bcbba4df4c619ce2bceab7bc1709f4f4eac7 Mon Sep 17 00:00:00 2001 From: Mathieu Barnachon Date: Wed, 27 Nov 2013 11:36:34 +0100 Subject: [PATCH] Fix shadow parameter. --- modules/features2d/src/bagofwords.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/features2d/src/bagofwords.cpp b/modules/features2d/src/bagofwords.cpp index e04bedb644..6d181ca69d 100644 --- a/modules/features2d/src/bagofwords.cpp +++ b/modules/features2d/src/bagofwords.cpp @@ -149,14 +149,14 @@ void BOWImgDescriptorExtractor::compute( const Mat& image, std::vector 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(); } }