Fix parameter name to fit documentation.
authorMathieu Barnachon <mathieu.barnachon@ncam-tech.com>
Wed, 27 Nov 2013 10:06:52 +0000 (11:06 +0100)
committerMathieu Barnachon <mathieu.barnachon@ncam-tech.com>
Wed, 27 Nov 2013 10:06:52 +0000 (11:06 +0100)
modules/features2d/src/bagofwords.cpp

index a98b972..e04bedb 100644 (file)
@@ -141,7 +141,7 @@ const Mat& BOWImgDescriptorExtractor::getVocabulary() const
 }
 
 void BOWImgDescriptorExtractor::compute( const Mat& image, std::vector<KeyPoint>& keypoints, Mat& imgDescriptor,
-                                         std::vector<std::vector<int> >* pointIdxsOfClusters, Mat* _descriptors )
+                                         std::vector<std::vector<int> >* pointIdxsOfClusters, Mat* descriptors )
 {
     imgDescriptor.release();
 
@@ -155,8 +155,8 @@ void BOWImgDescriptorExtractor::compute( const Mat& image, std::vector<KeyPoint>
     compute( descriptors, imgDescriptor, pointIdxsOfClusters );
 
     // Add the descriptors of image keypoints
-    if (_descriptors) {
-        *_descriptors = descriptors.clone();
+    if (descriptors) {
+        *descriptors = descriptors.clone();
     }
 }