Skip to content
This repository was archived by the owner on Jul 20, 2023. It is now read-only.

Commit 8fc40be

Browse files
author
BCOM\nduong
committed
Fix descriptor matcher knn for accepting one query feature
1 parent 6e4ade7 commit 8fc40be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/SolARDescriptorMatcherKNNOpencv.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ FrameworkReturnCode SolARDescriptorMatcherKNNOpencv::match(SRef<DescriptorBuffer
4747
// check conditions
4848
if ((desc1->getDescriptorType() != desc2->getDescriptorType()) ||
4949
desc1->getNbDescriptors() == 0 || desc2->getNbDescriptors() == 0 ||
50-
desc1->getNbDescriptors() < 2 || desc2->getNbDescriptors() < 2){
50+
desc2->getNbDescriptors() < 2){
5151
return FrameworkReturnCode::_ERROR_;
5252
}
5353

0 commit comments

Comments
 (0)