原来在一个优秀的计算机视觉博客中看到过,这次要用,记下这个网址:
http://www.cs.stonybrook.edu/~kyamagu/mexopencv/
需要的童鞋自取。
初体验:
我的环境win7+VS2010+matlab2011b+opencv2.4.5
下载mexopencv-master.zip解压后,按README.markdown,在matlab2011b中输入命令
>mexopencv.make('opencv_path', 'D:\Program Files\opencv244')
----------------------------------------------------------------------------------------------
如果使用VS2008会提示缺头文件
'stdint.h': No such file or directory
在这里找到了头文件放入mexopencv-master的include文件夹中即可:
http://msinttypes.googlecode.com/svn/trunk/stdint.h
----------------------------------------------------------------------------------------------
mex成功后给出如下信息:
To finish the setup, add OpenCV bin folder to the systemPATH, then restart MATLA

本文介绍了如何在MATLAB环境中配置和使用OpenCV,包括下载mexopencv,解决VS2008头文件缺失问题,设置环境变量以及运行示例代码的过程。
最低0.47元/天 解锁文章
1406

被折叠的 条评论
为什么被折叠?



