28 #ifndef CORELIB_SRC_FLANNINDEX_H_ 29 #define CORELIB_SRC_FLANNINDEX_H_ 33 #include <opencv2/opencv.hpp> 44 unsigned int indexedFeatures()
const;
47 unsigned long memoryUsed()
const;
50 void buildLinearIndex(
51 const cv::Mat & features,
52 bool useDistanceL1 =
false,
53 float rebalancingFactor = 2.0
f);
54 void buildKDTreeIndex(
55 const cv::Mat & features,
57 bool useDistanceL1 =
false,
58 float rebalancingFactor = 2.0
f);
59 void buildKDTreeSingleIndex(
60 const cv::Mat & features,
63 bool useDistanceL1 =
false,
64 float rebalancingFactor = 2.0
f);
66 const cv::Mat & features,
67 unsigned int table_number = 12,
68 unsigned int key_size = 20,
69 unsigned int multi_probe_level = 2,
70 float rebalancingFactor = 2.0
f);
77 std::vector<unsigned int> addPoints(
const cv::Mat & features);
79 void removePoint(
unsigned int index);
83 const cv::Mat & query,
89 bool sorted =
true)
const;
93 const cv::Mat & query,
94 std::vector<std::vector<size_t> > & indices,
95 std::vector<std::vector<float> > & dists,
100 bool sorted =
true)
const;
std::map< int, cv::Mat > addedDescriptors_
std::list< int > removedIndexes_