Color Components of a Pixel
Each color is composed of three separate color components. These components can be represented as combinations of red, green and blue (RGB), or hue, saturation and intensity (HSI). For both RGB and HSI, each component of a pixel is converted to a value from 0 to 255.
RGB colors are created by combining shades of red (255, 0, 0), green (0, 255, 0) and blue (0, 0, 255) in different proportions. The combination produces a specific color for each pixel.
For HSI, the hue of a color corresponds to its location within the visible portion of the electromagnetic spectrum of radiation.
The saturation of a color is the degree to which the color is mixed with grey or white. A fully saturated color is pure; as a color becomes mixed with grey or white, it becomes less saturated.
The intensity of a color is a measure of its brightness. The intensity of a color is defined as the average value of the red, green and blue components that make up the color. The resulting mixture of hue, saturation and intensity produces the correct color for each pixel.
RGB values = 255, 0, 0 HSI values = 0, 255, 85 |
|
RGB values = 0, 255, 0 HSI values = 85, 255, 85 |
|
RGB values = 0, 0, 255 HSI values = 170, 255, 85 |