SRGB↔XYZ Conversion (2021)
a day ago
- #gamma-correction
- #color-space
- #sRGB
- sRGB to XYZ conversion involves gamma correction to account for human perception of brightness.
- Human perception of brightness follows a power function, making us more sensitive to dark colors.
- Gamma correction in sRGB uses a piecewise function for encoding and decoding to optimize color representation.
- sRGB encoding typically uses 8 bits per channel, with specific formulas for gamma expansion and compression.
- The implementation includes conversion matrices for transforming between sRGB and XYZ color spaces.
- TypeScript code provided demonstrates gamma correction and matrix multiplication for color space conversion.
- Updated in March 2021 with more precise values for the D65 standard illuminant affecting conversion matrices.