mat.at<uchar>(row, col); 如果想要用cout打印出来,前面要加上(int),否则打印出来的是空字符; 转载于:https://www.cnblogs.com/canyeweiwei/p/10749386.html