Fixed CV_ASSERT condition in the code for bag of words
This commit is contained in:
parent
3542da7167
commit
1a89a03c7c
@ -172,7 +172,7 @@ int BOWImgDescriptorExtractor::descriptorType() const
|
|||||||
|
|
||||||
void BOWImgDescriptorExtractor::compute( InputArray keypointDescriptors, OutputArray _imgDescriptor, std::vector<std::vector<int> >* pointIdxsOfClusters )
|
void BOWImgDescriptorExtractor::compute( InputArray keypointDescriptors, OutputArray _imgDescriptor, std::vector<std::vector<int> >* pointIdxsOfClusters )
|
||||||
{
|
{
|
||||||
CV_Assert( vocabulary.empty() != false );
|
CV_Assert( !vocabulary.empty() );
|
||||||
|
|
||||||
int clusterCount = descriptorSize(); // = vocabulary.rows
|
int clusterCount = descriptorSize(); // = vocabulary.rows
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user