gamma

open fun gamma(value: Double, absMax: Double, gamma: Double): Double
open fun gamma(value: Float, absMax: Float, gamma: Float): Float

Applies gamma correction to a given value within a specified range.

Return

the gamma corrected value

Parameters

value

the input value to be gamma corrected

absMax

the maximum absolute value allowed in the input range

gamma

the gamma value for correction