Merge pull request #2351 from yashdv:BOW_assert_error
authorRoman Donchenko <roman.donchenko@itseez.com>
Mon, 17 Feb 2014 07:58:02 +0000 (11:58 +0400)
committerOpenCV Buildbot <buildbot@opencv.org>
Mon, 17 Feb 2014 07:58:03 +0000 (11:58 +0400)
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