您的位置:首页 > 运维架构

opencv 3.0 Mat 格式化输出 cout

2015-03-28 12:47 344 查看
矩阵格式化输出

Mat img = (Mat_<double>(3,3) << 1, 2, 3, 4, 5, 6, 7, 8, 9);
cout << "No-\n" << img << endl;
cout << "c\n" << format(img,Formatter::FMT_C) << endl;
cout << "csv\n" << format(img,Formatter::FMT_CSV) << endl;
cout << "default\n" << format(img,Formatter::FMT_DEFAULT) << endl;
cout << "matlab\n" << format(img,Formatter::FMT_MATLAB) << endl;
cout << "numpy\n" << format(img,Formatter::FMT_NUMPY) << endl;
cout << "python\n" << format(img,Formatter::FMT_PYTHON) << endl;


内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: