The RGB color model represents a color through red, green and blue components. In a normalized additive linear-light representation, is black and equal full-strength channels define the reference white. A component's meaning depends on the chosen primaries and white point. Encoded sRGB components are nonlinear functions of linear light, so averaging their numeric values is not generally the same as averaging light intensities. Eight-bit RGB stores three channel values with 256 levels each, but that bit count alone does not specify a device-independent gamut.[ref]
In Linear-light RGB, each component is proportional to the amount of its corresponding primary light. Adding or averaging components therefore corresponds to adding or averaging those light contributions, provided the same primaries and reference conditions are used. Nonlinear display encodings such as sRGB must first be decoded for this arithmetic.[ref]
For a nonnegative sRGB channel in , the linear value is when , and otherwise. Thus encoded mid-gray represents approximately0.214 linear light. Averaging encoded black and white gives0.5, while averaging their light gives0.5 linear, encoded as approximately0.735. This explains dark fringes produced by averaging nonlinear channel values directly. The primaries, white point and transfer rule together determine a color space; linearity alone does not specify which colors an RGB triple represents.

Articles by others on the same topic (0)

There are currently no matching articles.