Ask Your Question

Revision history [back]

Vec3b is an array of char : you have to convert to int:

cout << static_cast<int>(color.at<cv::vec3b>(row,col)[0] );