projects
/
profile
/
ivi
/
opencv.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3542da7
)
Fixed CV_ASSERT condition in the code for bag of words
author
yash
<yashdv@gmail.com>
Sun, 16 Feb 2014 17:03:30 +0000
(22:33 +0530)
committer
yash
<yashdv@gmail.com>
Sun, 16 Feb 2014 17:03:30 +0000
(22:33 +0530)
modules/features2d/src/bagofwords.cpp
patch
|
blob
|
history
diff --git
a/modules/features2d/src/bagofwords.cpp
b/modules/features2d/src/bagofwords.cpp
index
1bb345e
..
5cbbc55
100644
(file)
--- 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<std::vector<int> >* pointIdxsOfClusters )
{
- CV_Assert(
vocabulary.empty() != false
);
+ CV_Assert(
!vocabulary.empty()
);
int clusterCount = descriptorSize(); // = vocabulary.rows