Ask Your Question
0

which distance does the opencv KNN algorithm use?

asked 2016-05-28 16:31:20 -0600

jack1 gravatar image

updated 2016-05-28 16:31:46 -0600

I use opencv KNN but i would know which distance this algorithm use :euclidean, hamming ...

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2016-05-29 04:02:03 -0600

berak gravatar image

updated 2016-05-29 04:30:26 -0600

(squared)euclidean

if you need to apply a different datatype(i.e CV8U) or a different distance function, have a look at flann::Index

edit flag offensive delete link more

Comments

1

thank you a lot :)

jack1 gravatar imagejack1 ( 2016-05-29 05:15:22 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2016-05-28 16:31:20 -0600

Seen: 384 times

Last updated: May 29 '16