hist_equalize
Luo_Suppe2026-08-15
gma.math.stretch.hist_equalize
function hist_equalize(data, min_label = None, max_label = None, ignore_value = None, bins = 256):
Apply non-linear contrast stretching, where the values are distributed within the bit depth range.
Parameters:
data: array.
The data to be stretched.
Optional:
min_label = float||None. Default None.
Minimum value after stretching. Default(None) is the minimum value of the input data.
max_label = float||None. Default None.
Maximum value after stretching. Default(None) is the maximum value of the input data.
ignore_value = float||None. Default None.
The value that is not involved in the calculation.
bins = int. Default 256.
Number of histogram bins.
Returns:
Type: array.