(1)单通道图像创建
Mat img1 = new Mat(240, 320, DepthType.Cv8U,1);
img1.SetTo(new MCvScalar(100));
CvInvoke.Imshow("Image", img1);
(2)三通道图像创建
img1.Create(240, 240, DepthType.Cv8U, 3);
img1.SetTo(new MCvScalar(0, 0, 255));
CvInvoke.Imshow("Image", img1);