OSVR-Core
Macros
OpenCVVersion.h File Reference

Header defining a few simple preprocessor macros for dealing with OpenCV 2 and 3 compatibility. More...

#include <opencv2/core/core.hpp>

Go to the source code of this file.

Macros

#define OSVR_OPENCV_VER   2
 
#define OSVR_OPENCV_2
 
#define OSVR_OPENCV_VER_GUESSED
 
#define OSVR_OPENCV_VER_COMPONENT_2   0
 
#define OSVR_OPENCV_VER_COMPONENT_2   0
 
#define OSVR_OPENCV_AT_LEAST_VERSION(X, Y, Z)
 Version checking macro: true at preprocessor time if OpenCV is at least version X.Y.Z. More...
 

Detailed Description

Header defining a few simple preprocessor macros for dealing with OpenCV 2 and 3 compatibility.

Date
2016
Author
Sensics, Inc. http://sensics.com/osvr

Macro Definition Documentation

§ OSVR_OPENCV_AT_LEAST_VERSION

#define OSVR_OPENCV_AT_LEAST_VERSION (   X,
  Y,
 
)
Value:
((OSVR_OPENCV_VER > X) || \
(OSVR_OPENCV_VER == X && OSVR_OPENCV_VER_COMPONENT_2 > Y) || \
(OSVR_OPENCV_VER == X && OSVR_OPENCV_VER_COMPONENT_2 == Y && \
OSVR_OPENCV_VER_COMPONENT_3 >= Z))

Version checking macro: true at preprocessor time if OpenCV is at least version X.Y.Z.