Merge pull request #2351 from yashdv:BOW_assert_error

pull/2330/merge
Roman Donchenko 11 years ago committed by OpenCV Buildbot
commit f252687eae
  1. 2
      modules/features2d/src/bagofwords.cpp

@ -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

Loading…
Cancel
Save