有关cvlink的一些信息:
cvLink是一款用于simulink的高效且免费的计算机视觉模块。 cvLink是在openCV库上开发的,这是一个伟大的计算机视觉开源项目。
该库具有> 60个优化块。它的运行速度比Mathworks的官方视频和图像处理模块组快三倍,并且在Simulink下可实现高达每秒60帧的(软)实时视觉。
我下载了cvlink,并按照本网站http://www.lab.cnrs.fr/openblockslib/cvLink.html
的说明进行操作当我试图在simulink中运行一个演示时,我在每个s函数中都出错了,它说s函数不存在。我认为我应该重新编译cvlink,所以我再次按照网站的说明编译它。 我配置了Visual C ++并输入mex-setup,至少它运行良好。所以我在matlab中键入cvbuildall并得到:
matlab版本7.7,opencv 2.2,cvlink 1.2b
>> cvbuildall
*** Building cvLinkArithmeticOperation library ***
Building cvabsdiff.cpp...
Creating library C:\USERS\MRMEAN\APPDATA\LOCAL\TEMP\MEX_BF~1\templib.x and object
C:\USERS\MRMEAN\APPDATA\LOCAL\TEMP\MEX_BF~1\templib.exp
cvabsdiff.obj : error LNK2019: unresolved external symbol cvAbsDiff referenced in function "void __cdecl mdlOutputs(struct SimStruct_tag *,int)" (?mdlOutputs@@YAXPEAUSimStruct_tag@@H@Z)
cvabsdiff.obj : error LNK2019: unresolved external symbol cvResetImageROI referenced in function "void __cdecl mdlOutputs(struct SimStruct_tag *,int)" (?mdlOutputs@@YAXPEAUSimStruct_tag@@H@Z)
cvabsdiff.obj : error LNK2019: unresolved external symbol cvSetImageROI referenced in function "void __cdecl mdlOutputs(struct SimStruct_tag *,int)" (?mdlOutputs@@YAXPEAUSimStruct_tag@@H@Z)
cvabsdiff.obj : error LNK2019: unresolved external symbol cvGetImageROI referenced in function "void __cdecl mdlOutputs(struct SimStruct_tag *,int)" (?mdlOutputs@@YAXPEAUSimStruct_tag@@H@Z)
cvabsdiff.obj : error LNK2019: unresolved external symbol cvCloneImage referenced in function "void __cdecl mdlOutputs(struct SimStruct_tag *,int)" (?mdlOutputs@@YAXPEAUSimStruct_tag@@H@Z)
cvabsdiff.obj : error LNK2019: unresolved external symbol cvReleaseImage referenced in function "void __cdecl mdlTerminate(struct SimStruct_tag *)" (?mdlTerminate@@YAXPEAUSimStruct_tag@@@Z)
cvinterface.obj : error LNK2019: unresolved external symbol cvSetErrStatus referenced in function "int __cdecl cvLinkErr(int,char const *,char const *,char const *,int,void *)" (?cvLinkErr@@YAHHPEBD00HPEAX@Z)
cvabsdiff.mexw64 : fatal error LNK1120: 7 unresolved externals
C:\PROGRA~1\MATLAB\R2008B\BIN\MEX.PL: Error: Link of 'cvabsdiff.mexw64' failed.
??? Error using ==> mex at 213
Unable to complete successfully.
Error in ==> cvbuild at 25
eval(P);
Error in ==> cvbuildall at 7
cvbuild cvabsdiff.cpp
我试图修改cvbuild,但它没有用。
有什么建议吗?提前谢谢。