开发者

about K-Nearest Neighbor and OpenCV in C#

开发者 https://www.devze.com 2023-03-27 05:24 出处:网络
I am wondering if there is a built-in function in OpenCV that performs KNN ? If it exists how can I deal with i开发者_运维百科t .. I searched but I didn\'t find any useful thing

I am wondering if there is a built-in function in OpenCV that performs KNN ?

If it exists how can I deal with i开发者_运维百科t .. I searched but I didn't find any useful thing

thank


It certainly appears to exist, if this is the right method you need:

http://opencv.willowgarage.com/documentation/cpp/k_nearest_neighbors.html

This blog post shows how to use it in C:

http://www.aishack.in/2010/10/k-nearest-neighbors-in-opencv/

That should be portable to your C# wrapper.

If you're using the Emgu wrapper, heres a tutorial showing KNN in C#:

http://emgu.com/wiki/index.php/K_Nearest_Neighbors_in_CSharp

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号