MTF
FLANNCVParams.h
1 #ifndef MTF_FLANNCV_PARAMS_H
2 #define MTF_FLANNCV_PARAMS_H
3 
4 #include "mtf/Macros/common.h"
5 #include "opencv2/features2d/features2d.hpp"
6 
7 _MTF_BEGIN_NAMESPACE
8 
11 
12  enum class IdxType{
13  KDTree, HierarchicalClustering, KMeans, Composite, Linear,
14  LSH, Autotuned
15  };
16 
17  typedef cv::Ptr<cv::flann::SearchParams> SearchParamsPtr;
18  typedef cv::Ptr<cv::flann::IndexParams> IndexParamsPtr;
19 
20  static const char* toString(IdxType index_type);
21 
22  const SearchParamsPtr getSearchParams();
23  const IndexParamsPtr getIndexParams();
24 
25  void printParams();
26 
27  IdxType index_type;
28 
29  int srch_checks;
30  float srch_eps;
31  bool srch_sorted;
32  int kdt_trees;
33  int km_branching;
34  int km_iterations;
35  cvflann::flann_centers_init_t km_centers_init;
36  float km_cb_index;
37  int kdts_leaf_max_size;
38  int kdtc_leaf_max_size;
39  int hc_branching;
40  cvflann::flann_centers_init_t hc_centers_init;
41  int hc_trees;
42  int hc_leaf_max_size;
43  float auto_target_precision;
44  float auto_build_weight;
45  float auto_memory_weight;
46  float auto_sample_fraction;
47 
48 
50  IdxType _index_type,
51  int _srch_checks,
52  float _srch_eps,
53  bool _srch_sorted,
54  int kdt_trees,
55  int km_branching,
56  int km_iterations,
57  cvflann::flann_centers_init_t _km_centers_init,
58  float km_cb_index,
59  int kdts_leaf_max_size,
60  int kdtc_leaf_max_size,
61  int hc_branching,
62  cvflann::flann_centers_init_t _hc_centers_init,
63  int hc_trees,
64  int hc_leaf_max_size,
65  float auto_target_precision,
66  float auto_build_weight,
67  float auto_memory_weight,
68  float auto_sample_fraction);
69  FLANNCVParams(const FLANNCVParams *params = nullptr);
70 };
71 
72 _MTF_END_NAMESPACE
73 
74 #endif
75 
index specific params
Definition: FLANNCVParams.h:10