From: yash Date: Sun, 16 Feb 2014 17:03:30 +0000 (+0530) Subject: Fixed CV_ASSERT condition in the code for bag of words X-Git-Tag: submit/tizen_ivi/20141117.190038~2^2~616^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1a89a03c7c7cb6f9ad69b65be7dc05dd8e6e404e;p=profile%2Fivi%2Fopencv.git Fixed CV_ASSERT condition in the code for bag of words --- 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