Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

If your image is grayscale, than type will be unsigned char.

If it is bgr -> cv::Vec3b (cv::Vec<unsigned char, 3>)

And y must be the first index -> mat.at<unsigned char>(y, x)