gamma
Luo_Suppe2026-08-15
gma.math.correction.gamma
function gamma(data, constant = 1, ignore_value = None, gamma_v = 1):
Gamma transform. Reference equation: Out = constant * ((data - vvmin) / vptp) ** gamma_v) * vptp.
Parameters:
data: array.
The data to be corrected.
Optional:
constant = float. Default 1.
The constant term of the correction factor.
ignore_value = float||None. Default None.
The value that is not involved in the calculation.
gamma_v = float. Default 1.
Gamma value.
**Note.
If the input data type is uint8, the data will be transformed between 0 ~ 255..
Otherwise, it will transform between the maximum and vminimum values of the input array..
Returns:
Type: array.