OpenCV 2 学习笔记(2): OpenCV 2 介绍

来源:互联网 发布:淘宝腰上纹身女模特 编辑:程序博客网 时间:2024/05/21 06:43

the OpenCV library is divided into several modules. These modules are built in library files located in the lib directory. They are:
The opencv_core module that contains the core functionalities of thelibrary, in nparticular,the basic data structures and arithmetic functions.
The opencv_imgproc module that contains the main image processing functions.
The opencv_highgui module that contains the image and video reading and writingfunctions, along with other user interface functions.
The opencv_features2d module that contains the feature point detectors and descriptorsand the feature point matching framework.
The opencv_calib3d module that contains the camera calibration,two-view geometryestimation, and stereo functions.
The opencv_video module that contains the motion estimation,feature tracking, and foreground extraction functions and classes.
The opencv_objdetectmodule containing the object detection functions such as the face and people detectors.
The library also includes other utility modules containing machine learningfunctions (opencv_ml),computationalgeometry algorithms ( opencv_flann), contributed code(opencv_contrib),obsolete code (opencv_legacy ), and GPUaccelerated code ( opencv_gpu ).
Opencv库分为许多模块,其中主要的有:
opencv_core模块,其中包括库中核心函数结构,特别是基础的数据结构和算术函数。
opencv_imgproc模块。包含图像处理函数。
opencv_highgui 模块。包含图像与视频读取与写入函数,也包含一些其它的用户界面函数。
opencv_features2d模块。包含特征点检测与描述函数和特征点匹配框架。
opencv_calib3d模块。包含摄像机标定、双视图几何估计、立体函数。
opencv_video模块。包含行动估计、特征追踪、前景提取功能和类。
opencv_objdetect模块。包含对象检测函数例如人脸和人物检测。
除了这些还有其它的工具模块例如包含机器学习函数的模块opencv_ml、计算几何算法opencv_flann、contributed code opencv_contrib、以前代码opencv_legacy、GPU加速代码opencv_gpu等。
所有的这些模块都有一个头文件与之关联,在include文件夹中。典型的OpencvC++代码会通过包含所需模块开始。例如:
#include<opencv2/core/core.hpp>
#include<opencv2/imgproc/imgproc.hpp>
#include<opencv2/highgui/highgui.hpp>
例如#include"cv.h"这种格式是在模块化以前的过时格式。