|
把原有的工程改为C++工程后编译链接通过,然后加入 cvCanny(Image,ImageOut,50,150,3); 这句后就出现链接错误:
<Linking>
undefined first referenced
symbol in file
--------- ----------------
_cvCanny F:\\VideoProcess\\Debug\\VideoProcess.obj
>> error: symbol referencing errors - './Debug/VideoProcess.out' not built
检查cvCanny函数声明在cv.h中:/* Runs canny edge detector */
CVAPI(void) cvCanny( const CvArr* image, CvArr* edges, double threshold1,double threshold2, int aperture_size CV_DEFAULT(3) );
这个头文件中也已经有
#ifdef __cplusplus
extern "C" {
#endif等语句。
调用其中的其他函数也是类似的链接错误。
请教大虾们该如何使用其中的函数来进行图像处理呢? |
|