CV_VERSION_EPOCH seems to be defined only in 2.x.x.
Also fix the condition for operatoer<<(MatSize). We don't need it for
OpenCV 2.
return os;
}
-#if CV_VERSION_MAJOR < 3 || CV_VERSION_MINOR < 3
+#if CV_MAJOR_VERSION == 3 && CV_MINOR_VERSION < 3
static inline std::ostream &operator<<(std::ostream &out, const cv::MatSize &msize)
{
int i, dims = msize.p[-1];
n = std::max(lower, std::min(n, upper));
}
-#if CV_VERSION_EPOCH < 3
+#if CV_MAJOR_VERSION < 3
template<typename _Tp> static inline
cv::Size_<_Tp> operator / (const cv::Size_<_Tp>& a, _Tp b)
{