我有一个使用opencv
库开发的c ++代码来提取视觉词包。我的代码基于以下方法:
void extractTrainingVocabulary (const path& basepath)
(使用boost库的路径)
void extractBOWDescriptor(const path& basepath, Mat& descriptors)
现在,我需要使用JNI从Java程序中调用这些方法
我应该如何编写Java本机方法?什么是它的参数?
我试试:
public native void extractTrainingVocabulary ( String basepath)
public native void extractBOWDescriptor (String basepath , Mat descriptors)
但是当我运行javah时,我收到错误'class not mat found'