]> rtime.felk.cvut.cz Git - hercules2020/kcf.git/commitdiff
Add more debug prints
authorMichal Sojka <michal.sojka@cvut.cz>
Mon, 8 Oct 2018 11:59:53 +0000 (13:59 +0200)
committerMichal Sojka <michal.sojka@cvut.cz>
Mon, 8 Oct 2018 11:59:53 +0000 (13:59 +0200)
src/kcf.cpp

index 48e1468dc26a35a730d516fb4655b84b292593aa..7135a022d917f6595fc43117d4a1074f187f1f8f 100644 (file)
@@ -671,14 +671,19 @@ void KCF_Tracker::GaussianCorrelation::operator()(ComplexMat &result, const Comp
                                                   double sigma, bool auto_correlation, const KCF_Tracker &kcf)
 {
     TRACE("");
+    DEBUG_PRINTM(xf);
+    DEBUG_PRINT(xf_sqr_norm.num_elem);
     xf.sqr_norm(xf_sqr_norm);
-    DEBUG_PRINTM(xf_sqr_norm[0]);
+    for (uint s = 0; s < xf.n_scales; ++s)
+        DEBUG_PRINT(xf_sqr_norm[s]);
     if (auto_correlation) {
         yf_sqr_norm = xf_sqr_norm;
     } else {
+        DEBUG_PRINTM(yf);
         yf.sqr_norm(yf_sqr_norm);
     }
-    DEBUG_PRINTM(yf_sqr_norm[0]);
+    for (uint s = 0; s < yf.n_scales; ++s)
+        DEBUG_PRINTM(yf_sqr_norm[s]);
     xyf = auto_correlation ? xf.sqr_mag() : xf * yf.conj(); // xf.muln(yf.conj());
     DEBUG_PRINTM(xyf);