提交 3bf3da19 编写于 作者: M Marius Muja

Removing 'dim' param from kdtree_single_index, not needed any more because of...

Removing 'dim' param from kdtree_single_index, not needed any more because of the stride support in matrix class
上级 9de8d3a1
......@@ -55,7 +55,6 @@ struct KDTreeSingleIndexParams : public IndexParams
(*this)["algorithm"] = FLANN_INDEX_KDTREE_SINGLE;
(*this)["leaf_max_size"] = leaf_max_size;
(*this)["reorder"] = reorder;
(*this)["dim"] = dim;
}
};
......@@ -87,8 +86,6 @@ public:
{
size_ = dataset_.rows;
dim_ = dataset_.cols;
int dim_param = get_param(params,"dim",-1);
if (dim_param>0) dim_ = dim_param;
leaf_max_size_ = get_param(params,"leaf_max_size",10);
reorder_ = get_param(params,"reorder",true);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册