I ran into this 'Vec3b green(0,255,0), blue (255,0,0);' in some code I'm converting to another language. I'm new to C++ OpenCV and was wondering where it is in the Documentation, I searched everywhere and couldn't find it. I also grepped the entire OpenCV directory and found this to be the closest to a definition of it 

'typedef Vec3b RGB;'

in the /home/w/Documents/opencv-master/modules/imgproc/test/test\_cvtyuv.cpp file

I grepped for RGB and couldn't find a definition on that either though there was alot of output on it and I may have missed something. I'm writing a C wrapper for it is why I need to know, so far I have this to wrap the above 'Vec3b green(0,255,0)':

```
 Vec3b cv_create_Vec3b(const char* color, int val1, int val2, int val3) {
     return new Vec3b color (val1, val2, val3);
 }

```

But gets this error:

```
 opencv_generated.cpp:8:22: error: expected ‘;’ before ‘color’
      return new Vec3b color (val1, val2, val3);
                  ^
opencv_generated.cpp:8:45: error: ‘color’ cannot be used as a function
     return new Vec3b color (val1, val2, val3);

```

I, first of all, could use help, to find out how to type "color" . It just needs a variable that would be "green" or "blue" whatever is input when it ran(new to C++ kind of)..Second just if someone could point me to or tell me info on it or show me a declaration on it so I'd have enough info to write my wrapper I'd be grateful.

Thank you
 ^