The need for gamma correction in displays is primarily related to the characteristics of the human visual system, the efficiency of signal transmission and storage, and the accuracy of image display. The following is a detailed explanation:
1. The human eye's perception of brightness is nonlinear.
The human eye is much more sensitive to details in dark areas than details in bright areas. For example, in dim conditions, the human eye can detect very subtle changes in brightness; in bright light, however, changes in brightness have relatively little impact on vision.
This nonlinear perceptual characteristic can be described by the Weber-Fechner law: the brightness changes perceived by the human eye are proportional to the logarithm of the actual physical brightness, not a linear relationship.
2. Mathematical Definition of Gamma Correction
Gamma correction adjusts the relationship between the input signal (such as image pixel values) and the output brightness using a power function. The formula is:
Vout = V7in
Where $\gamma$ is the gamma value (typically 2.2 or 1.8).
Gamma < 1: Dark areas are boosted and bright areas are compressed (used for encoding to save bandwidth).
Gamma > 1: Dark areas are compressed and bright areas are boosted (used for decoding to restore linear brightness).
3. Historical Reasons: Physical Characteristics of CRT Displays
The electron gun emission intensity of early CRT (cathode ray tube) displays exhibited a nonlinear relationship with input voltage (γ ≈ 2.2), resulting in output brightness that was not proportional to the input signal.
To compensate for this, gamma encoding (γ ≈ 1/2.2) was pre-applied to images before storage or transmission, making the final displayed brightness closer to linear.
4. Compatibility and Standard Harmonization of Modern Displays
Although modern displays like LCDs and OLEDs have a closer physical response to linearity, gamma correction standards (such as γ = 2.2 for the sRGB color gamut) are still used to maintain compatibility with historical content (such as movies and photographs).
Without correction, images appear too dark on the display, and dark details are lost.
5. Optimizing Signal Transmission and Storage Efficiency
Gamma encoding compresses dark signal levels, reducing data size and improving transmission efficiency. For example:
In an 8-bit image (256 grayscale levels), dark details may occupy only a few shades under linear encoding, while gamma encoding distributes details more evenly. This feature is particularly important in older systems with limited bandwidth.
6. Practical Applications
Photography and Photo Editing: Uncalibrated displays can cause photos to appear distorted in brightness when printed or shared.
Games and Film: Gamma correction ensures detail in dark scenes (such as shadows and night scenes) is visible, enhancing immersion.
Design: Designers must work on gamma-calibrated displays to ensure consistency across devices.
Summary
Gamma correction uses nonlinear adjustments to compensate for the perceptual characteristics of the human eye, physical imperfections of displays, and historical standards, ensuring images are displayed with accurate brightness and rich detail. It bridges the gap between digital signals and human vision and is crucial for cross-device content consistency.