fixed bug of wrong likelihood when KDTree is used with Kp/IncrementalFlann=false (maybe related to #144)

This commit is contained in:
matlabbe
2016-11-10 14:07:00 -05:00
parent 4885a9e65a
commit 9fbd02b06d

View File

@@ -485,7 +485,7 @@ void VWDictionary::update()
break;
case kNNFlannKdTree:
UASSERT_MSG(type == CV_32F, "To use KdTree dictionary, float descriptors are required!");
_flannIndex->buildKDTreeIndex(_dataTree, useDistanceL1_);
_flannIndex->buildKDTreeIndex(_dataTree, 4, useDistanceL1_);
break;
case kNNFlannLSH:
UASSERT_MSG(type == CV_8U, "To use LSH dictionary, binary descriptors are required!");