Color System (Computer Vision)

Source: https://docs.opencv.org/2.4/doc/tutorials/core/mat_the_basic_image_container/mat_the_basic_image_container.html#storing-methods

There are, however, many other color systems each with their own advantages:

  • RGB is the most common as our eyes use something similar, but keep in mind that the OpenCV display system uses BGR colors.
  • The HSV and HLS decompose colors into their hue, saturation and value/luminance components, which is a more natural way for us to describe colors. You might, for example, dismiss the value component, making your algorithm less sensitive to the light conditions of the input image.
  • YCrCb is used by the popular JPEG image format
  • CIE Lab* is a perceptually uniform color space, which comes handy if you need to measure theĀ distanceĀ of a given color to another color.