delta.utilities.rangescale

delta.utilities.rangescale(frame: ndarray[Any, dtype[float32]], rescale: Tuple[float, float]) ndarray[Any, dtype[float32]]

Rescale image values to be within range

Parameters
frameND numpy array of uint8/uint16/float/bool

Input image(s).

rescaleTuple of 2 values

Values range for the rescaled image.

Returns
2D numpy array of floats

Rescaled image