Fixed CV_ASSERT condition in the code for bag of words
authoryash <yashdv@gmail.com>
Sun, 16 Feb 2014 17:03:30 +0000 (22:33 +0530)
committeryash <yashdv@gmail.com>
Sun, 16 Feb 2014 17:03:30 +0000 (22:33 +0530)
modules/features2d/src/bagofwords.cpp

index 1bb345e..5cbbc55 100644 (file)
@@ -172,7 +172,7 @@ int BOWImgDescriptorExtractor::descriptorType() const
 
 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