openCV像素遍历比较 创建单通道纯黑图像,尝试多种方法遍历像素,并计时比较。 创建单通道纯黑图像 double t1,t2,t3,t4; Mat blackcount = Mat(6576, 4384, CV_8UC1, Scalar(0));//单通道CV_8UC3,灰度 imwrite("count.jpg", blackcount); 遍历像素 ```cpp //at 遍历像素 t1 = (double)getTickCount(); for (i = 0; i < 6576; i++) {