19,468
社区成员
发帖
与我相关
我的任务
分享
Mat src;
Mat src_gray;
src = imread("D:\\pic.jpg");
cvtColor(src, src_gray, CV_BGR2GRAY);
for (int i = 0; i < src_gray.rows; i++)
for (int j = 0; j < src_gray.cols; j++)
{
double c;
c = src_gray.at<uchar>(i, j);
cout << c << endl;
}
system("pause");