opencv C++下获取矩阵某点的值,输出方框字符 原因是输出cout未进行类型转换,需要将cout << IMG.ptr<uchar>(Y)[X] << endl;转换为cout << int(IMG.ptr<uchar>(Y)[X]) << endl;