Main MRPT website
>
C++ reference for MRPT 1.4.0
mrpt
otherlibs
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-2016, 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 MRPT_OPENCV_VERSION_NUM>0x300
24
# include <opencv2/core/fast_math.hpp>
25
# endif
26
# if !defined(__cplusplus)
27
# include <opencv2/core/core_c.h>
28
# include <opencv2/highgui/highgui_c.h>
29
# include <opencv2/imgproc/imgproc_c.h>
30
# else
31
# include <opencv2/core/core.hpp>
32
# include <opencv2/core/core_c.h>
33
# include <opencv2/highgui/highgui.hpp>
34
# include <opencv2/highgui/highgui_c.h>
35
# include <opencv2/imgproc/imgproc.hpp>
36
# include <opencv2/imgproc/imgproc_c.h>
37
# include <opencv2/features2d/features2d.hpp>
38
# include <opencv2/video/tracking.hpp>
39
# if MRPT_OPENCV_VERSION_NUM>=0x300
40
# include <opencv2/video/tracking_c.h>
41
# endif
42
# include <opencv2/calib3d/calib3d.hpp>
43
# include <opencv2/objdetect/objdetect.hpp>
44
//# include <opencv2/core/eigen.hpp> // Removed: opencv 2.3 had this file broken in Ubuntu (??)
45
# // These ones dissapeared in 3.0.0: <opencv2/legacy/{legacy,compat}.hpp> // CvImage
46
# if (MRPT_OPENCV_VERSION_NUM>=0x240)
47
# include <opencv2/opencv_modules.hpp>
48
# endif
49
# endif
50
# else
51
// For OpenCV <=2.1
52
# include <cv.h>
53
# include <highgui.h>
54
# include <cvaux.h>
55
# endif
56
57
# if defined(__cplusplus)
58
#include <
mrpt/utils/CImage.h
>
59
using
mrpt::utils::CImage
;
60
61
typedef
std::vector<CvPoint2D32f> CvPoint2D32fVector;
62
# endif
63
#endif // MRPT_HAS_OPENCV
64
65
#endif
mrpt::utils::CImage
A class for storing images as grayscale or RGB bitmaps.
Definition:
CImage.h:101
CImage.h
Page generated by
Doxygen 1.8.16
for MRPT 1.4.0 SVN: at Mon Oct 14 22:32:58 UTC 2019