RGB color Space
1, three-color principle: Most of the colors can be red, green, blue three colors according to different proportions of the synthesis, the same vast majority of monochromatic light can also be decomposed into red and green blue three kinds of shade
The red, green, and blue three colors are added by different proportions. Blending is called additive process color. Some of the process color laws are:
Red + green = yellow;
Green + blue = cyan;
Red + blue = Magenta;
Red + green + blue = white;
2. Complementary light: When two types of light are mixed to obtain white lights in the appropriate proportions, the two light are complementary light
3, Brightness: Monochromatic light intensity of different, according to the person's feeling is: the brightest green, red followed by, the most weak blue
4, assuming that the brightness of the white light is 100%, then an RGB channel color brightness calculation: r=0.299r+0.587g+0.114b
5, Cvmerge (SRC,SRC,SRC,0,DST); Combine several single-channel image SRC into a multi-channel image DST
6, in the color space, there is a diagonal line above this diagonal, only brightness, no color
HSV Color Space
1, v Channel: brightness, when the external light is 0, the brightness is 0
2, H Channel: hue, what color to indicate
3, S channel: saturation, the more the composition of a color in white, the lower the saturation
RGB and HSV color space