【OpenCV】OpenCV函数精讲之 -- “opencv.hpp” 头文件

# include 头文件定义类似如下:

# include

# 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 ”即可。

 

 

你可能感兴趣的:(OpenCV实战-从入门到精通,opencv)