]> rtime.felk.cvut.cz Git - hercules2020/kcf.git/blobdiff - src/debug.h
Unify CPU and GPU implementations of ComplexMat
[hercules2020/kcf.git] / src / debug.h
index 25e39437b607da8e33fa6ab9cf0e44063c94d159..5335de0b045c5f50627d420f21623adaa6a2b0c6 100644 (file)
@@ -7,10 +7,10 @@
 #include <stdio.h>
 #include <opencv2/opencv.hpp>
 #include "dynmem.hpp"
-#ifdef CUFFT
-#include "complexmat.cuh"
-#else
 #include "complexmat.hpp"
+
+#ifdef CUFFT
+#include <cufft.h>
 #endif
 
 
@@ -96,7 +96,7 @@ std::ostream &operator<<(std::ostream &os, const DbgTracer::Printer<T> &p)
     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];