Color Specification
Last updated
Last updated
This section discusses how to specify color in order to aid in visualization.
As we discussed earlier, any color can be obtained from the 3 channels.
To specify a color, we must first choose a color space. The set of all the colors that can be generated from a color space constitute the gamut of that color space.
Not all color spaces are equivalent. Some commonly used color spaces are discussed below.
This refers to the Red Green Blue color space.
It is commonly used on the screens of digital devices.
R, G, B have values ranging from 0 to 1 each. (0,0,0) refers to black and (1,1,1) refers to white.
The issue with the RGB color space is that it isn't very natural i.e. it is not easy to generate colors that are useful for visualization. That is why it isn't commonly used for visualization.
This refers to Hue Saturation and Value/Lightness.
It is easier and more natural to specify colors using this color space.
Hue is the name of color, saturation is the vividness and lightness is the brightness of the color.
The issue with this color space is that it is not perceptually uniform. This means that distances that are mathematically computed in the color space do not correspond to the perceptual distances.
CIE stands for Commission Internationale de l'Eclairage (i.e. the International Commission on Illumination). CIE Lab and CIE Luv are perceptually uniform color spaces.
There are 3 channels:
L* (Lightness): This refers to the lightness/brightness of a color and it is perceptually uniform
a*: It is a chromatic axis that goes from Green to Magenta/Red
b*: It is a chromatic axis that goes from Yellow to Blue
This color space is a nonlinear transformation of the physical measure for the color (i.e. the wavelength). It is designed to be perceptually linear.
One issue with Lab is that, even though it is perceptually uniform, it is not easy to use.
This color space has the best of both worlds: usability and uniformity (i.e. perceptual uniformity).
It is a modified L*a*b* where a* and b* are converted into:
c* (chroma i.e the relative saturation)
L* still refers to the luminance/lightness.
h (hue i.e. the angle of the hue in CIE Lab)