OpenCV访问元素的几种方式.at<>(), .ptr<>(), .data,并测试了各自的速度
OpenCV的Mat在内存中是按行保存的#include#include#includeusingnamespacestd;intmain(intargc,char**argv){constinttest_time=100;cv::Matimage(5000,10000,CV_32SC3,cv::Scalar(0,0,0));intwidth=image.cols;intheight=image.