OSVR-Core  0.6-1962-g59773924
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
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_AT_LEAST_VERSION(X, Y, Z)
 

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

Definition in file OpenCVVersion.h.

Macro Definition Documentation

#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

Definition at line 113 of file OpenCVVersion.h.