I've looked at different questions already here on StackOverflow, but none seems to helps.
What I want to do is quite simple: I have a cv::Point and I need to get the RGB value for the pixel at that point in a cv::Mat so that I can compare it with a stored RGB value.
Now this should be very easy but I've tried 1001 different ways and it just doesnt work for me.
Someone please help me out of my misery!!
edit:
both answers below work!
I'm kinda new with C++ and didn't know that outputting a unsigned char through cout gives a questionmark!
printf offcourse gives the right value!!