文档介绍:OpenCV自学材料田永鸿北京大学数字媒体研究所第一部分OpenCV概述基础结构与操作基本OpenCV程序与示例注:本讲义中部分代码来自OpenCV样例,部分代码来自《OpenCV教程——基础篇》,部分代码则从网上收集。2OpenCV概述OpenCV是Intel开源计算机视觉库。它由一系列C函数和少量C++类构成,实现了图像处理和计算机视觉方面的很多通用算法。OpenCV的特点拥有包括300多个C函数的跨平台的中、高层API跨平台:Windows,Linux免费(FREE):无论对非商业应用和商业应用速度快使用方便3OpenCVstructureCXCOREbasicstructuresandalgoritms,XMLsupport,drawingfunctionsCVImageprocessingandvisionHighGUIGUI,ImageandVideoI/OMLMachineLearningalgorithmsCVCamvideostreamprocessing4TheFunctionalityinPicturesOpenCV的下载与安装1、下载地址 /download/2、 参见/%E4%B8%8B%E5%AE%89%E8%A3%85%E4%B8%8E%E9%85%8D%E7%BD%AE3、.NET2003下的安装与配置 参见 /%E4%B8%8B%E5%AE%89%E8%A3%85%E4%B8%8E%E9%85%8D%E7%BD%2k3Createa"Win32ConsoleProject"Makeitan"EmptyProject"byselectingtheboxunder"ApplicationSettings"Aprojectisinitiallycreatedbyselecting:File->New->2k3RightClickthe"SourceFiles"Folderundertheprojectname("Tutorial"inthiscase)Add->AddnewItemCreatetheFirstFileSelect"C++file"andgiveitanameCreatingafilemakesitpossibletoset"AdditionalIncludeDirectives"intheC/C++’spropertiesRightClickthenameoftheprojectandselect"Properties"("Tutorial"inthiscase)2k3UndertheC/C++tabselect"General"SetAdditionalIncludeDirectivesSelectthe"AdditionalIncludeDirectives"Addthefullpathtoeachofthefolderswhichcontain".h"filesrequiredtouseOpenCVBesuretoincludetrailing"\"C:\ProgramFiles\OpenCV\cvaux\include\C:\ProgramFiles\OpenCV\cxcore\include\C:\ProgramFiles\OpenCV\cv\include\C:\ProgramFiles\OpenCV\otherlibs\highgui\C:\ProgramFiles\OpenCV\otherlibs\cvcam\include\UtilizedDirectives