max_min

Luo_Suppe2026-08-15

gma.math.stretch.max_min

[function] max_min(data, min_label = None, max_label = None, ignore_value = None, MinV = None, MaxV = None):

Use linear stretching with the minimum and maximum output pixel values as the endpoints of the histogram.

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.

MinV = float||None. Default None.

Minimum value. Default(None) is the minimum value of the input data.

MaxV = float||None. Default None.

Maximum value. Default(None) is the minimum value of the input data.

Returns:

Type: array.

Last Updated 8/19/2026, 6:10:59 AM