赞
踩
# include <opencv2/opencv.hpp>头文件定义类似如下:
# include <opencv2/opencv.hpp>
# ifndef_OPENCV_ALL_HPP_
#define_OPENCV_ALL_HPP_
# include "opencv2/core/core_c.h"
# include "opencv2/core/core.hpp"
# include "opencv2/flann/miniflann.hpp"
# include "opencv2/imgproc/imgproc_c.h"
# include "opencv2/imgproc/imgproc.hpp"
# include "opencv2/photo/photo.hpp"
# include "opencv2/video/video.hpp"
# include "opencv2/features2d/features2d.hpp"
# include "opencv2/objdetect/objdetect.hpp"
# include "opencv2/calib3d/calib3d.hpp"
# include "opencv2/m1/m1.hpp"
# include "opencv2/highgui/highgui_c.h"
# include "opencv2/highgui/highgui.hpp"
# include "opencv2/contrib/contrib.hpp"
# endif
opencv.hpp已经包含了OpenCV各模块的头文件,所以在编写core、objdetect、imgproc、photo、features2d、calib3d、m1、highgui、contrib模块的应用程序时,原则上仅写一句“# include <opencv2/opencv.hpp>”即可。
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。