opencv - Which distance function does FlannBasedMatcher use and how to change it? -
which distance function opencvs flannbasedmatcher use , possible change default? in user manual original flann muja , lowe there different distance types (flann_distance_t) , don't see method in opencv change them :-/
this poorly documented in code opencv default settings flannbasedmatcher found in these 2 functions
flann::searchparams(); //32 checks, 0, sorted=true flann::kdtreeindexparams(); //uses 4 randomized kd trees
the distance function default flann_dist_l2.
i think bit of code explains why can't yet change printf("[warning] using cv::flann::index (or cv::flann::genericindex) , have changed distance using cvflann::set_distance_type. no longer working expected cv::flann::index uses l2). should create index templated on distance, example l1 distance use: genericindex< l1<float> > \n"); \
Comments
Post a Comment