]> rtime.felk.cvut.cz Git - hercules2020/kcf.git/blobdiff - src/kcf.cpp
Make OpenCV version checks to work correctly for both 2.x.x and 3.x.x
[hercules2020/kcf.git] / src / kcf.cpp
index 5aeb1612d047f4cfa502ccfa943ba8af6b2c46a7..fd32f6637b6f0574ee144e391823028d2b4d4d11 100644 (file)
@@ -34,7 +34,7 @@ void clamp2(T& n, const T& lower, const T& upper)
     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)
 {