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

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -