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;
相关文章推荐
- [转载] c++ cout 格式化输出浮点数、整数及格方法
- 第一篇:在opencv3.0中,Mat转化成iplimage
- OpenCV 3.0中IplImage* 转cv::Mat
- Opencv3.0中Mat与IplImage的转换
- cout 格式化输出
- 使用cout格式化输出字符串
- cout格式化输出 详解
- opencv 3.0 Mat 初始化 eye ones zeros create randn
- cout 格式化输出
- OpenCV 3.0中IplImage* 转cv::Mat
- [学习笔记][C++Primer Plus]使用cout格式化输出字符串
- 使用cout进行格式化输出(2)
- c++ cout 格式化输出浮点数、整数及格方法
- cout 格式化输出
- cout格式化输出
- 有趣的搬砖工 No.2 cout格式化输出
- cout格式化输出
- cout的格式化输出
- c++ cout 格式化输出示例
- 4.1.5 OpenCV3.0.0的格式化输出