13 std::string
format(
const cv::Mat_<int8_t> &m){
15 for (
int r = 0; r < m.rows; r++) {
17 for (
int c = 0; c < m.cols; c++) {
18 ss << (c==0?
"":
", ") << std::setw(6) << m(r,c);
20 ss << (r<m.cols-1?
";":
"]") << std::endl;
24 std::string
format(
const cv::Mat_<int> &m){
26 for (
int r = 0; r < m.rows; r++) {
28 for (
int c = 0; c < m.cols; c++) {
29 ss << (c==0?
"":
", ") << std::setw(12) << m(r,c);
31 ss << (r<m.cols-1?
";":
"]") << std::endl;
35 std::string
format(
const cv::Mat_<float> &m){
37 for (
int r = 0; r < m.rows; r++) {
38 ss << std::setprecision(std::numeric_limits<float>::digits10 + 1);
40 for (
int c = 0; c < m.cols; c++) {
41 ss << (c==0?
"":
", ") << std::setw(12) << m(r,c);
43 ss << (r<m.cols-1?
";":
"]") << std::endl;
47 std::string
format(
const cv::Mat_<double> &m){
49 for (
int r = 0; r < m.rows; r++) {
50 ss << std::setprecision(std::numeric_limits<double>::digits10 + 1);
52 for (
int c = 0; c < m.cols; c++) {
53 ss << (c==0?
"":
", ") << std::setw(24) << m(r,c);
55 ss << (r<m.cols-1?
";":
"]") << std::endl;
static std::map< DistributionType, std::string > DistributionTypeName
std::string format(const cv::Mat_< int8_t > &m)