我正在尝试运行样本k-最近的分类器代码: http://docs.opencv.org/2.4/modules/ml/doc/k_nearest_neighbors.html 我已经包含了这些标题:
#include "opencv2/imgproc/imgproc.hpp"
#include "opencv2/highgui/highgui.hpp"
#include "opencv2/ml/ml.hpp"
我收到以下错误:
未解析的外部符号" public:virtual float __cdecl CvKNearest :: find_nearest(struct CvMat const *,int,struct CvMat *,float const * *,struct CvMat *,struct CvMat *)const" (?find_nearest @ @@ CvKNearest @@ UEBAMPEBUCvMat @ HPEAU2 @ PEAPEBM11 Z)
任何帮助解决此问题都将非常感激。