OpenCV 공부 - Mat 객체의 다양한 초기화 방법
void MatOp1() { Mat img1; // empty matrix Mat img2(480, 640, CV_8UC1);// unsigned char, 1-channel Mat img3(480, 640, CV_8UC3);// unsigned char, 3-channels Mat img4(Size(640, 480), CV_8UC3);// Size(width, height) Mat img5(480, 640, CV_8UC1, Scalar(128));// initial values, 128 Mat img6(480, 640, CV_8UC3, Scalar(0, 0, 255));// initial values, red Mat mat1 = Mat::zeros(3, 3, CV_32SC1);// 0's matrix ..