]> rtime.felk.cvut.cz Git - hercules2020/kcf.git/commitdiff
Revert "debug: Round low values to zero when printing them"
authorMichal Sojka <michal.sojka@cvut.cz>
Thu, 4 Oct 2018 22:19:46 +0000 (00:19 +0200)
committerMichal Sojka <michal.sojka@cvut.cz>
Thu, 4 Oct 2018 22:19:46 +0000 (00:19 +0200)
This reverts commit 3201116062300ef82b40d5d6d17eef4df27911f6.

src/debug.cpp

index 0f666b188cdabf36aa626c9f2ba43a1787d0be84..4f21a39de9df54e7f7b290346958d8f66548d65b 100644 (file)
@@ -23,14 +23,8 @@ std::ostream &operator<<(std::ostream &os, const DbgTracer::Printer<ComplexMat>
     for (uint s = 0; s < p.obj.n_scales; ++s) {
         uint ofs = s * p.obj.rows * p.obj.cols * p.obj.n_channels / p.obj.n_scales;
         os << " = [ ";
-        for (int i = 0; i < std::min(num, p.obj.size().area()); ++i) {
-            std::complex<float> c = p.obj.get_p_data()[ofs + i];
-            if (fabs(c.real()) < 5e-7)
-                c = std::complex<float>(0, c.imag());
-            if (fabs(c.imag()) < 5e-7)
-                c = std::complex<float>(c.real(), 0);
-            os << c << ", ";
-        }
+        for (int i = 0; i < std::min(num, p.obj.size().area()); ++i)
+            os << p.obj.get_p_data()[ofs + i] << ", ";
         os << (num < p.obj.size().area() ? "... ]" : "]");
     }
     return os;