EMCV算法库已经在CCS5上编译通过并生成了.lib文件,我将该emcv.lib文件放到RDK DM8127代码(路径为ipnc_rdk/ipnc_mcfw/mcfw/src_bios6/links_c6xdsp/alg)中,并且编译通过。
现在的问题是,如何在DSP中调用EMCV中的算法库,还请各位大神帮忙指点一下,不胜感谢!
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
可我现在在调用emcv中的函数就报错。
#include <mcfw/src_bios6/links_c6xdsp/alg/emcv/inc/cv.h>
#include <mcfw/src_bios6/links_c6xdsp/alg/emcv/inc/highgui.h>
....
...
CV_IMPL void emcvdspalg(void)
{
IplImage *srcimg = 0;
srcimg = cvLoadCreate("/opt/ipnc/lena.bmp", -1);
cvSaveImage("opt/ipnc/copy.bmp", srcimg);
cvReleaseImage(&srcimg);
return;
}
....
...
emcvdspalg();
编译的时候提示错误:
"links_c6xdsp/helloWorld/helloWorldLink_priv.c", line 22: error: function declared implicitly
"links_c6xdsp/helloWorld/helloWorldLink_priv.c", line 22: error: a value of type "int" cannot be assigned to an entity of type "IplImage *"
不管怎么调用都不对,另外emcv的头文件都放到路径:ipnc_rdk/ipnc_mcfw/mcfw/src_bios6/links_c6xdsp/alg/emcv/inc下了。