Merge remote-tracking branch 'upstream/master' into bow_desc
authorMathieu Barnachon <mathieu.barnachon@gmail.com>
Sun, 24 Nov 2013 13:21:44 +0000 (14:21 +0100)
committerMathieu Barnachon <mathieu.barnachon@gmail.com>
Sun, 24 Nov 2013 13:21:44 +0000 (14:21 +0100)
Conflicts:
modules/features2d/src/bagofwords.cpp

1  2 
modules/features2d/doc/object_categorization.rst
modules/features2d/include/opencv2/features2d.hpp
modules/features2d/src/bagofwords.cpp

@@@ -202,6 -176,21 +202,16 @@@ void BOWImgDescriptorExtractor::compute
  
      // Normalize image descriptor.
      imgDescriptor /= descriptors.rows;
 -
 -    // Add the descriptors of image keypoints
 -    if (_descriptors) {
 -        *_descriptors = descriptors.clone();
 -    }
  }
  
+ int BOWImgDescriptorExtractor::descriptorSize() const
+ {
+     return vocabulary.empty() ? 0 : vocabulary.rows;
+ }
+ int BOWImgDescriptorExtractor::descriptorType() const
+ {
+     return CV_32FC1;
+ }
  }