Quantcast
Channel: OpenCV Q&A Forum - RSS feed
Viewing all articles
Browse latest Browse all 41027

What is the distance used by K-nearest neighbour in opencv

$
0
0
Hello, I am using the machine learning k-nearest neighbour algrithm c++. I have a dataset with a high dimensional features. So, the euclidian distance will be not the best. I try to find which distance used in knearest.cpp to change it and used different distances but I could not because the code lacks comments. I find this block in the 189 but It seems that it not used in the find_nearest function. Any help? > for( ; t < d; t++ )> {>> double t0 = u[t] - v[t];> sum += t0*t0;>> }

Viewing all articles
Browse latest Browse all 41027

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>