Euclidean or Manhattan in KNN

asked 2014-03-10 19:22:17 -0600

jossyy gravatar image


I wonder that which distance is used on opencv KNN?

edit retag flag offensive close merge delete



Quite sure from file modules/ml/src/knearest.cpp, it is Euclidean.

tuannhtn gravatar imagetuannhtn ( 2014-03-11 11:26:03 -0600 )edit

I looked into this file. But I am not clear that it is euclidean. I dont know that how I can change method of finding distance.

jossyy gravatar imagejossyy ( 2014-03-11 16:55:41 -0600 )edit