I've seen similar questions asked but the answers were for the old C API.
I have a colour image loaded with cv::Mat img = cv::imread("C:/some_image.jpg");
Normally, I access elements in a grayscale image with img.at<float>(row, col)
, but this would clearly just return a float. How do I get a value (perhaps a float? integer?) for each component R, G, B at each pixel location?