CvScalar s;
s = cvGet2D(src, j,i);//获取src图像中坐标为(i,j)的像素点的值
s.val[0] 代表src图像BGR中的B通道的值~
int nXY = cvGet2D( feImg, y, x).val[0];
等价于
s = cvGet2D( feImg, y, x);
nXY = s.val[0]
转载于:https://www.cnblogs.com/Peit/p/6028746.html
CvScalar s;
s = cvGet2D(src, j,i);//获取src图像中坐标为(i,j)的像素点的值
s.val[0] 代表src图像BGR中的B通道的值~
int nXY = cvGet2D( feImg, y, x).val[0];
等价于
s = cvGet2D( feImg, y, x);
nXY = s.val[0]
转载于:https://www.cnblogs.com/Peit/p/6028746.html