- All Known Implementing Classes:
ModifiedGammaMapping
,SimpleGammaMapping
public interface GammaMapping
Interface to be implemented by gamma correction classes. All in/out component values are assumed to be in [0,1].
Implementing classes must at least define a
double
version of the required methods but are free to override
the associated float
versions.- Version:
- 2022/11/16
-
Method Summary
Modifier and TypeMethodDescriptiondouble
applyFwd
(double a) Forward Gamma mapping (from linear to non-linear component values).default float
applyFwd
(float a) Float version ofapplyFwd(double)
double
applyInv
(double b) Inverse Gamma mapping (from non-linear to linear component values).default float
applyInv
(float b) Float version ofapplyInv(double)
-
Method Details
-
applyFwd
Forward Gamma mapping (from linear to non-linear component values).- Parameters:
a
- linear component value in [0,1]- Returns:
- the gamma-corrected (non-linear) component value
-
applyFwd
Float version ofapplyFwd(double)
- Parameters:
a
- linear component value in [0,1]- Returns:
- the gamma-corrected (non-linear) component value
-
applyInv
Inverse Gamma mapping (from non-linear to linear component values).- Parameters:
b
- non-linear (Gamma-corrected) component value in [0,1]- Returns:
- the linear component value
-
applyInv
Float version ofapplyInv(double)
- Parameters:
b
- non-linear (Gamma-corrected) component value in [0,1]- Returns:
- the linear component value
-