How to Print Pixel Color Value C++
I have image with all value is 127(grey), and I want to try to pick one of coordinate and print pixel value, value must return 127.
printf("%d ", nom1.at<uchar>(Point(0, 0)));
but its give me an error . My purpose is to get each pixel color value and print it.
Thank you.
What's the pixel type of nom1?