max_min

Luo_Suppe2026-08-15

gma.math.stretch.max_min

function max_min(data, min_label = None, max_label = None, ignore_value = None, vmin = None, vmax = 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.

vmin = float||None. Default None.

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

vmax = float||None. Default None.

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

Returns:

Type: array.


Last Updated 8/15/2026, 8:42:21 AM