当前位置:   article > 正文

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

opencv.hpp

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

 

 

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/码创造者/article/detail/954818
推荐阅读
相关标签
  

闽ICP备14008679号