Which distance function does FlannBasedMatcher use and how to change it?
Which distance function does openCVs flannBasedMatcher use and is it possible to change the default? In the user manual from the original flann by Muja and Lowe there are some different distance types (flann_distance_t) and I don't see a method in opencv to change them :-/ This is very poorly documented in the code for openCV but the default settings for the flannBasedMatcher are found in these two functions flann::SearchParams(); //32 checks, 0, sorted=true flann::KDTreeIndexParams(); //uses 4 randomized KD trees The distance function by default is FLANN_DIST_L2. I think this bit of code