Main MRPT website > C++ reference
MRPT logo
do_opencv_includes.h
Go to the documentation of this file.
1 /* +---------------------------------------------------------------------------+
2  | The Mobile Robot Programming Toolkit (MRPT) C++ library |
3  | |
4  | http://www.mrpt.org/ |
5  | |
6  | Copyright (C) 2005-2012 University of Malaga |
7  | |
8  | This software was written by the Machine Perception and Intelligent |
9  | Robotics Lab, University of Malaga (Spain). |
10  | Contact: Jose-Luis Blanco <jlblanco@ctima.uma.es> |
11  | |
12  | This file is part of the MRPT project. |
13  | |
14  | MRPT is free software: you can redistribute it and/or modify |
15  | it under the terms of the GNU General Public License as published by |
16  | the Free Software Foundation, either version 3 of the License, or |
17  | (at your option) any later version. |
18  | |
19  | MRPT is distributed in the hope that it will be useful, |
20  | but WITHOUT ANY WARRANTY; without even the implied warranty of |
21  | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
22  | GNU General Public License for more details. |
23  | |
24  | You should have received a copy of the GNU General Public License |
25  | along with MRPT. If not, see <http://www.gnu.org/licenses/>. |
26  | |
27  +---------------------------------------------------------------------------+ */
28 
29 #ifndef MRPT_DO_OPENCV_INCL_H
30 #define MRPT_DO_OPENCV_INCL_H
31 
32 // By including this file you make sure of #including all the relevant OpenCV
33 // headers, from OpenCV 1.0 up to the latest version.
34 
35 #include <mrpt/config.h>
36 
37 #if MRPT_HAS_OPENCV
38  // OPENCV HEADERS
39 # define CV_NO_CVV_IMAGE // Avoid CImage name crash
40 
41 # if MRPT_OPENCV_VERSION_NUM>=0x211
42 # if !defined(__cplusplus)
43 # include <opencv2/core/core_c.h>
44 # include <opencv2/highgui/highgui_c.h>
45 # include <opencv2/imgproc/imgproc_c.h>
46 # else
47 # include <opencv2/core/core.hpp>
48 # include <opencv2/highgui/highgui.hpp>
49 # include <opencv2/imgproc/imgproc.hpp>
50 # include <opencv2/imgproc/imgproc_c.h>
51 # include <opencv2/features2d/features2d.hpp>
52 # include <opencv2/video/tracking.hpp>
53 # include <opencv2/calib3d/calib3d.hpp>
54 # include <opencv2/objdetect/objdetect.hpp>
55 
56 # include <opencv2/legacy/legacy.hpp> // CvImage
57 # include <opencv2/legacy/compat.hpp>
58 # if MRPT_OPENCV_VERSION_NUM>=0x240
59 //# include <opencv2/nonfree/nonfree.hpp>
60 # endif
61 # endif
62 # else
63  // For OpenCV <=2.1
64 # include <cv.h>
65 # include <highgui.h>
66 # include <cvaux.h>
67 # endif
68 
69  #ifdef CImage // For old OpenCV versions (<=1.0.0)
70  #undef CImage
71  #endif
72 
73 # if defined(__cplusplus)
74  #include <mrpt/utils/CImage.h>
75  using mrpt::utils::CImage;
76 
77  typedef std::vector<CvPoint2D32f> CvPoint2D32fVector;
78 # endif
79 #endif // MRPT_HAS_OPENCV
80 
81 #endif



Page generated by Doxygen 1.8.3 for MRPT 0.9.6 SVN: at Fri Feb 15 22:05:02 EST 2013