From 99c8b8c016950c33f184b8f1753de23f075cf457 Mon Sep 17 00:00:00 2001 From: Mathieu Barnachon Date: Wed, 27 Nov 2013 11:06:52 +0100 Subject: [PATCH] Fix parameter name to fit documentation. --- modules/features2d/src/bagofwords.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/features2d/src/bagofwords.cpp b/modules/features2d/src/bagofwords.cpp index a98b972..e04bedb 100644 --- a/modules/features2d/src/bagofwords.cpp +++ b/modules/features2d/src/bagofwords.cpp @@ -141,7 +141,7 @@ const Mat& BOWImgDescriptorExtractor::getVocabulary() const } void BOWImgDescriptorExtractor::compute( const Mat& image, std::vector& keypoints, Mat& imgDescriptor, - std::vector >* pointIdxsOfClusters, Mat* _descriptors ) + std::vector >* pointIdxsOfClusters, Mat* descriptors ) { imgDescriptor.release(); @@ -155,8 +155,8 @@ void BOWImgDescriptorExtractor::compute( const Mat& image, std::vector compute( descriptors, imgDescriptor, pointIdxsOfClusters ); // Add the descriptors of image keypoints - if (_descriptors) { - *_descriptors = descriptors.clone(); + if (descriptors) { + *descriptors = descriptors.clone(); } } -- 2.7.4