4 std::ostream &operator<<(std::ostream &os, const DbgTracer::Printer<cv::Mat> &p)
7 os << std::setprecision(3);
8 os << p.obj.size << " " << p.obj.channels() << "ch ";// << static_cast<const void *>(p.obj.data);
10 constexpr size_t num = 10;
11 for (size_t i = 0; i < std::min(num, p.obj.total()); ++i)
12 os << p.obj.ptr<float>()[i] << ", ";
13 os << (num < p.obj.total() ? "... ]" : "]");
17 std::ostream &operator<<(std::ostream &os, const DbgTracer::Printer<ComplexMat> &p)
20 os << std::setprecision(3);
21 os << "<cplx> " << p.obj.size() << " " << p.obj.channels() << "ch "; // << p.obj.get_p_data();
22 constexpr int num = 10;
23 for (uint s = 0; s < p.obj.n_scales; ++s) {
24 uint ofs = s * p.obj.rows * p.obj.cols * p.obj.n_channels / p.obj.n_scales;
26 for (int i = 0; i < std::min(num, p.obj.size().area()); ++i)
27 os << p.obj.get_p_data()[ofs + i] << ", ";
28 os << (num < p.obj.size().area() ? "... ]" : "]");
29 os << std::endl << std::string(20, ' ');