Commit c2f59a0f authored by Roman Donchenko's avatar Roman Donchenko

flann: fix AutotunedIndex crashing if a KDTree index is selected

Backport of mariusmuja/flann@f8ca6df3.
parent 6b954cd2
......@@ -384,6 +384,7 @@ private:
// evaluate kdtree for all parameter combinations
for (size_t i = 0; i < FLANN_ARRAY_LEN(testTrees); ++i) {
CostData cost;
cost.params["algorithm"] = FLANN_INDEX_KDTREE;
cost.params["trees"] = testTrees[i];
evaluate_kdtree(cost);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment