一、
The cv::Mat Class: N-Dimensional Dense Arrays
1.1 Creating an Array
1.1 Creating an Array
Mat m;
m.create(3, 10, CV_32FC3);
m.setTo(Scalar(100.0f, 100.0f, 100.0f));
Mat n(3, 10, CV_32FC3, Scalar(100.0f, 100.0f, 100.0f));
以上两种创建方式是一样的。
Mat constructors that do not copy data