1 #ifndef MTF_FLANN_PARAMS_H 2 #define MTF_FLANN_PARAMS_H 4 #include "mtf/Macros/common.h" 5 #include <flann/flann.hpp> 13 GNN, KDTree, HierarchicalClustering, KMeans, Composite, Linear,
14 KDTreeSingle, KDTreeCuda3d, Autotuned
16 enum class SearchType{ KNN, Radius };
17 static const char* toString(IdxType index_type);
18 static const char* toString(SearchType index_type);
20 const flann::IndexParams getIndexParams(IdxType _index_type = IdxType::KDTree,
21 bool load_index=
false, std::string saved_idx_path=
"");
22 void updateSearchParams();
24 flann::SearchParams search;
28 SearchType search_type;
30 IdxType fgnn_index_type;
35 int srch_max_neighbors;
37 bool srch_matrices_in_gpu_ram;
38 flann::tri_type srch_use_heap;
42 flann::flann_centers_init_t km_centers_init;
44 int kdts_leaf_max_size;
45 int kdtc_leaf_max_size;
47 flann::flann_centers_init_t hc_centers_init;
50 float auto_target_precision;
51 float auto_build_weight;
52 float auto_memory_weight;
53 float auto_sample_fraction;
56 SearchType _search_type,
58 IdxType _fgnn_index_type,
62 int _srch_max_neighbors,
64 bool _srch_matrices_in_gpu_ram,
65 flann::tri_type _srch_use_heap,
69 flann::flann_centers_init_t _km_centers_init,
71 int kdts_leaf_max_size,
72 int kdtc_leaf_max_size,
74 flann::flann_centers_init_t _hc_centers_init,
77 float auto_target_precision,
78 float auto_build_weight,
79 float auto_memory_weight,
80 float auto_sample_fraction);
index specific params
Definition: FLANNParams.h:10