n = std::max(lower, std::min(n, upper));
}
+#if CV_VERSION_EPOCH < 3
+template<typename _Tp> static inline
+cv::Size_<_Tp> operator / (const cv::Size_<_Tp>& a, _Tp b)
+{
+ return cv::Size_<_Tp>(a.width / b, a.height / b);
+}
+#endif
+
class Kcf_Tracker_Private {
friend KCF_Tracker;
std::vector<ThreadCtx> threadctxs;
std::cerr << "cuFFT supports only Gaussian kernel." << std::endl;
std::exit(EXIT_FAILURE);
}
-#else
- p_xf.create(feature_size.height, feature_size.height / 2 + 1, p_num_of_feats);
#endif
#if defined(CUFFT) || defined(FFTW)