30 #ifndef OPENCV_FLANN_DEFINES_H_
31 #define OPENCV_FLANN_DEFINES_H_
43 #define FLANN_EXPORT __declspec(dllexport)
44 #elif defined(FLANN_STATIC)
47 #define FLANN_EXPORT __declspec(dllimport)
55 #undef FLANN_PLATFORM_32_BIT
56 #undef FLANN_PLATFORM_64_BIT
57 #if defined __amd64__ || defined __x86_64__ || defined _WIN64 || defined _M_X64
58 #define FLANN_PLATFORM_64_BIT
60 #define FLANN_PLATFORM_32_BIT
64 #undef FLANN_ARRAY_LEN
65 #define FLANN_ARRAY_LEN(a) (sizeof(a)/sizeof(a[0]))
70 enum flann_algorithm_t
72 FLANN_INDEX_LINEAR = 0,
73 FLANN_INDEX_KDTREE = 1,
74 FLANN_INDEX_KMEANS = 2,
75 FLANN_INDEX_COMPOSITE = 3,
76 FLANN_INDEX_KDTREE_SINGLE = 4,
77 FLANN_INDEX_HIERARCHICAL = 5,
79 FLANN_INDEX_SAVED = 254,
80 FLANN_INDEX_AUTOTUNED = 255,
94 enum flann_centers_init_t
96 FLANN_CENTERS_RANDOM = 0,
97 FLANN_CENTERS_GONZALES = 1,
98 FLANN_CENTERS_KMEANSPP = 2,
99 FLANN_CENTERS_GROUPWISE = 3,
103 CENTERS_GONZALES = 1,
107 enum flann_log_level_t
116 enum flann_distance_t
118 FLANN_DIST_EUCLIDEAN = 1,
120 FLANN_DIST_MANHATTAN = 2,
122 FLANN_DIST_MINKOWSKI = 3,
124 FLANN_DIST_HIST_INTERSECT = 5,
125 FLANN_DIST_HELLINGER = 6,
126 FLANN_DIST_CHI_SQUARE = 7,
128 FLANN_DIST_KULLBACK_LEIBLER = 8,
130 FLANN_DIST_HAMMING = 9,
131 FLANN_DIST_DNAMMING = 10,
145 enum flann_datatype_t
161 FLANN_CHECKS_UNLIMITED = -1,
162 FLANN_CHECKS_AUTOTUNED = -2