about K-Nearest Neighbor and OpenCV in C#
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
精彩评论