Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/delphi/8.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C++ 如何使用delphi xe2中的opencv cvKnearest类_C++_Delphi_Class_Function_Reference - Fatal编程技术网

C++ 如何使用delphi xe2中的opencv cvKnearest类

C++ 如何使用delphi xe2中的opencv cvKnearest类,c++,delphi,class,function,reference,C++,Delphi,Class,Function,Reference,我正在使用opencvdelphi()编写一个图像处理delphi程序,它引用了大部分函数,但没有引用cvKnearest。(包含一些用c++编写的函数的类) 如何引用函数?请参见 示例: *样本\Classes\CvKNearest\Classes\u 2D\u Point\u分类。dpr *samples\Classes\CvKNearest\CvKNearest/Class_labKNN.dproj该类最近添加,完整链接为 不能直接从Delphi中使用C++类。您需要在C++中编写一些包装

我正在使用opencvdelphi()编写一个图像处理delphi程序,它引用了大部分函数,但没有引用cvKnearest。(包含一些用c++编写的函数的类) 如何引用函数?

请参见
示例:
*样本\Classes\CvKNearest\Classes\u 2D\u Point\u分类。dpr

*samples\Classes\CvKNearest\CvKNearest/Class_labKNN.dproj

该类最近添加,完整链接为

不能直接从Delphi中使用C++类。您需要在C++中编写一些包装代码,以公开扁平C样式函数中的功能。