关于vs2010,win7,opencv2.2配置的一些小总结
前面的配置和2.2版本之前都差不多相同,可以参考这篇文章http://www.cnblogs.com/yushuitong/archive/2010/11/10/1873426.html,写的很详细。
executable:opencv\vs2010\bin
include:opencv\vs2010\include\opencv2
library:opencv\vs2010\lib
(推荐直接加opencv\vs2010\include\opencv2\core和opencv\vs2010\include\opencv2\highgui)
在第5步编程配置里,与前面的版本有差别。
为项目的Debug配置增加依赖的库:
opencv_imgproc220d.lib
opencv_legacy220d.lib
opencv_ml220d.lib
opencv_video220d.lib
opencv_highgui220d.lib
opencv_core220d.lib
opencv2.1的为:
cv210d.lib
cvaux210d.lib
cxcore210d.lib
highgui210d.lib
ml210d.lib
ps:
opencv2.2不再使用#include "cv.h",替换为#include
#include "highgui.h"替换为#include "highgui_c.h"
(运行可能有错误提示找不到opencv2/core/types_c.h之类的,我修改了core_c.h文件里types_c.h的路径,原代码是#include "opencv\core\types_c.h",改为#include "types_c.h";highgui_c.h也做了相应修改,#include "opencv\core\core_c.h"改为 #include "..\core\core_c.h")