one pixel's color
I use color Webcamera and I want to know one pixel's color I'm looking for an opencv function that define one pixel's color. for example:
int RED, GREEN, BLUE;
x=1;
y=1;
RED=RedColorFunction(x,y);
GREEN=GreenColorFunction(x,y);
BLUE=BlueColorFunction(x,y);
so I get the first pixel's color. Do you know similar fuction?