From 1a89a03c7c7cb6f9ad69b65be7dc05dd8e6e404e Mon Sep 17 00:00:00 2001 From: yash Date: Sun, 16 Feb 2014 22:33:30 +0530 Subject: [PATCH] Fixed CV_ASSERT condition in the code for bag of words --- modules/features2d/src/bagofwords.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/features2d/src/bagofwords.cpp b/modules/features2d/src/bagofwords.cpp index 1bb345e..5cbbc55 100644 --- a/modules/features2d/src/bagofwords.cpp +++ b/modules/features2d/src/bagofwords.cpp @@ -172,7 +172,7 @@ int BOWImgDescriptorExtractor::descriptorType() const void BOWImgDescriptorExtractor::compute( InputArray keypointDescriptors, OutputArray _imgDescriptor, std::vector >* pointIdxsOfClusters ) { - CV_Assert( vocabulary.empty() != false ); + CV_Assert( !vocabulary.empty() ); int clusterCount = descriptorSize(); // = vocabulary.rows -- 2.7.4