Conflicts:
modules/features2d/src/bagofwords.cpp
// 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;
+ }
+
}