First time here? Check out the FAQ!
answered 2012-08-29 01:59:39 -0600
If your image is grayscale, than type will be unsigned char.
unsigned char
If it is bgr -> cv::Vec3b (cv::Vec<unsigned char, 3>)
cv::Vec3b (cv::Vec<unsigned char, 3>)
And y must be the first index -> mat.at<unsigned char>(y, x)
y
mat.at<unsigned char>(y, x)