Main MRPT website > C++ reference
MRPT logo
do_opencv_includes.h
Go to the documentation of this file.
1 /* +---------------------------------------------------------------------------+
2  | Mobile Robot Programming Toolkit (MRPT) |
3  | http://www.mrpt.org/ |
4  | |
5  | Copyright (c) 2005-2014, Individual contributors, see AUTHORS file |
6  | See: http://www.mrpt.org/Authors - All rights reserved. |
7  | Released under BSD License. See details in http://www.mrpt.org/License |
8  +---------------------------------------------------------------------------+ */
9 
10 #ifndef MRPT_DO_OPENCV_INCL_H
11 #define MRPT_DO_OPENCV_INCL_H
12 
13 // By including this file you make sure of #including all the relevant OpenCV
14 // headers, from OpenCV 1.0 up to the latest version.
15 
16 #include <mrpt/config.h>
17 
18 #if MRPT_HAS_OPENCV
19  // OPENCV HEADERS
20 # define CV_NO_CVV_IMAGE // Avoid CImage name crash
21 
22 # if MRPT_OPENCV_VERSION_NUM>=0x211
23 # if !defined(__cplusplus)
24 # include <opencv2/core/core_c.h>
25 # include <opencv2/highgui/highgui_c.h>
26 # include <opencv2/imgproc/imgproc_c.h>
27 # else
28 # include <opencv2/core/core.hpp>
29 # include <opencv2/core/core_c.h>
30 # include <opencv2/highgui/highgui.hpp>
31 # include <opencv2/highgui/highgui_c.h>
32 # include <opencv2/imgproc/imgproc.hpp>
33 # include <opencv2/imgproc/imgproc_c.h>
34 # include <opencv2/features2d/features2d.hpp>
35 # include <opencv2/video/tracking.hpp>
36 # if MRPT_OPENCV_VERSION_NUM>=0x300
37 # include <opencv2/video/tracking_c.h>
38 # endif
39 # include <opencv2/calib3d/calib3d.hpp>
40 # include <opencv2/objdetect/objdetect.hpp>
41 
42 # include <opencv2/legacy/legacy.hpp> // CvImage
43 # include <opencv2/legacy/compat.hpp>
44 # if (MRPT_OPENCV_VERSION_NUM>=0x240) && MRPT_HAS_OPENCV_NONFREE
45 # include <opencv2/nonfree/nonfree.hpp>
46 # endif
47 # endif
48 # else
49  // For OpenCV <=2.1
50 # include <cv.h>
51 # include <highgui.h>
52 # include <cvaux.h>
53 # endif
54 
55  #ifdef CImage // For old OpenCV versions (<=1.0.0)
56  #undef CImage
57  #endif
58 
59 # if defined(__cplusplus)
60  #include <mrpt/utils/CImage.h>
61  using mrpt::utils::CImage;
62 
63  typedef std::vector<CvPoint2D32f> CvPoint2D32fVector;
64 # endif
65 #endif // MRPT_HAS_OPENCV
66 
67 #endif
A class for storing images as grayscale or RGB bitmaps.
Definition: CImage.h:97



Page generated by Doxygen 1.8.8 for MRPT 1.2.2 SVN:Unversioned directory at Tue Oct 14 02:14:08 UTC 2014