文章目录 1 Mat (int rows, int cols, int type) 2 Mat 的其他矩阵 3 Mat 的常用属性方法 4 成员变量 5 Mat赋值 5.1 Mat(int rows, int cols, int type, const Scalar& s) 5.2 数组赋值 或直接赋值 5.2.1 3*3 单通道 img 5.2.2 3*3 双通道 img 5.2.3 3*3 三通道 img OpenCV Mat类详解 1 Mat (int rows, int cols, int type) Mat m