mirror of
https://github.com/opencv/opencv.git
synced 2026-07-29 23:33:05 +04:00
Merge remote-tracking branch 'upstream/master' into bow_desc
Conflicts: modules/features2d/src/bagofwords.cpp
This commit is contained in:
@@ -204,4 +204,14 @@ void BOWImgDescriptorExtractor::compute( const Mat& descriptors, Mat& imgDescrip
|
||||
imgDescriptor /= descriptors.rows;
|
||||
}
|
||||
|
||||
int BOWImgDescriptorExtractor::descriptorSize() const
|
||||
{
|
||||
return vocabulary.empty() ? 0 : vocabulary.rows;
|
||||
}
|
||||
|
||||
int BOWImgDescriptorExtractor::descriptorType() const
|
||||
{
|
||||
return CV_32FC1;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user