]> rtime.felk.cvut.cz Git - hercules2020/kcf.git/commitdiff
debug: Add commented out expression to print the whole matrix
authorMichal Sojka <michal.sojka@cvut.cz>
Thu, 4 Oct 2018 22:17:21 +0000 (00:17 +0200)
committerMichal Sojka <michal.sojka@cvut.cz>
Thu, 4 Oct 2018 22:17:21 +0000 (00:17 +0200)
src/debug.cpp

index 3331de00036543f5d2c536ba9dc1b07f83003bfd..0f666b188cdabf36aa626c9f2ba43a1787d0be84 100644 (file)
@@ -7,7 +7,7 @@ std::ostream &operator<<(std::ostream &os, const DbgTracer::Printer<cv::Mat> &p)
     os << std::setprecision(DbgTracer::precision);
     os << p.obj.size << " " << p.obj.channels() << "ch ";// << static_cast<const void *>(p.obj.data);
     os << " = [ ";
-    constexpr size_t num = 10;
+    const size_t num = 10; //p.obj.total();
     for (size_t i = 0; i < std::min(num, p.obj.total()); ++i)
         os << p.obj.ptr<float>()[i] << ", ";
     os << (num < p.obj.total() ? "... ]" : "]");
@@ -19,7 +19,7 @@ std::ostream &operator<<(std::ostream &os, const DbgTracer::Printer<ComplexMat>
     IOSave s(os);
     os << std::setprecision(DbgTracer::precision);
     os << "<cplx> " << p.obj.size() << " " << p.obj.channels() << "ch "; // << p.obj.get_p_data();
-    constexpr int num = 10;
+    const int num = 10; //p.obj.rows * p.obj.cols * p.obj.n_channels / p.obj.n_scales;
     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 << " = [ ";