Color Spaces

Introduction

Numerous models of representation of color spaces use a composition on a plane representing luminosity and two planes representing color information. The meanings and definitions of these three planes vary slightly from one model to another, but their interpretation remains more or less stable.
The luminosity plane allows to represent the luminous intensity of a point independent of color. It thus models the functioning of the rods of the human eye. We can thus work on the brightness of a point without changing its color. This plane corresponds to the black and white version of a color image. It was really for compatibility reasons between the color and black and white screens that these types of models appeared.
Conversely, the two color planes let you represent the tone regardless of the brightness. They are normally constructed to explore the perceptual properties of the human eye. For compression applications these types of models can be advantageous. Several studies have shown that our eye is much more sensitive to brightness information than to tone information. Thus, in the lossy compression process we can introduce many more losses in these color planes than in the plane of luminosity. This will be exploited by formats that use JPEG standards or work with indexed colors


RGB Model

This is the best known model of all. It is the one that is used for the colors of our screens or televisions. Each color is obtained by additive synthesis of the three colors primary: red, green, and blue.


The colors are defined by the numerical value assigned to each primary color, i.e. by three integers. If these values are all at maximum value the resulting color is white. In contrast if the values are all null we get the color black. If the value of the three primary colors is identical we obtain more or less dark gray depending on the distance of these values to the maximum.


CMY Model

The CMY model (cyan, magenta and yellow) is based on the absorption capacity of light by the printing ink deposited on the paper. The color synthesis is subtractive: a part of the white light that lightens the paper is absorbed, that is, it subtracts the light reflected by the colored pigments of cyan, magenta and yellow, absorbing its complementary ones (cyan / red, magenta / green, yellow /blue).

This type of synthesis is characteristic of objects that reflect light: to obtain the desired matrices, the colors reflected by a white surface are subtracted. For this use filters with the colors we want to subtract. Be a white light source emitting in the direction of three cyan, magenta and yellow filters. The cyan color, being composed of green and blue lets pass these two colors, but opons to the passage of the red. The magenta color, consisting of red and blue, let these two pass through colors but opposes the passage of green. In the same way the yellow filter is opposed to the blue color. The overlap of the three filters does not let pass any of the three primary colors red, green and blue. The subtractive colorimeter space is suitable for the printing applications on physical media.


RGB - CMY Transformation:


HSV Model (Hue, Saturation, Value)

H - Hue

Represents the tone. The differences in tone depend on variations in the wavelength of light reaching the eye. The tone can be visually represented by a tone circle that goes from red to green and returns to red.

S - Saturation

Represents color saturation. This is measured in terms of the difference between a color and a gray with the same level of brightness. The lower the saturation, the more gray the color. When the saturation is zero the color is gray.

V - Value

Representing the luminous intensity. The brightness is determined by the degree of reflectivity of the light-receiving physical surface. The brighter the lighter the color.