Expand description
Gamma correction functions and lookup tables.
Port of agg_gamma_functions.h and agg_gamma_lut.h — various gamma
correction strategies used throughout AGG for anti-aliasing quality.
Structs§
- Gamma
Linear - Linear ramp gamma: 0 below
start, 1 aboveend, linear between. Port of C++gamma_linear. - Gamma
Lut - Gamma correction using pre-computed lookup tables.
Port of C++
gamma_lut<LoResT, HiResT, GammaShift, HiResShift>. - Gamma
Multiply - Multiplicative gamma:
min(x * multiplier, 1.0). Port of C++gamma_multiply. - Gamma
None - No gamma correction — returns input unchanged.
Port of C++
gamma_none. - Gamma
Power - Power-law gamma correction:
x^gamma. Port of C++gamma_power. - Gamma
Spline - Spline-based gamma correction curve.
- Gamma
Threshold - Threshold gamma: returns 0 if x < threshold, 1 otherwise.
Port of C++
gamma_threshold.
Traits§
- Gamma
Function - Trait for gamma correction functions. Port of C++ gamma function objects (operator() overload).
Functions§
- linear_
to_ srgb - Convert linear value (0..1) to sRGB.
- srgb_
to_ linear - Convert sRGB value (0..1) to linear.