LinearNorm#

class scarlet2.plot.LinearNorm(minimum, maximum)[source]#

Bases: Norm

Class for linear normalization

Linear norm, mapping the interval [minimum, maximum] to [0,1]

Parameters:
  • minimum (float) – Value that will be mapped to 0

  • maximum (float) – Value that will be mapped to 1

__call__(im)[source]#

Compute linear normalized image

clip(im, min_value, max_value)#

Clip image between min_value and max_value

convert_to_uint8(im)#

Convert three-channel image to RGB image with uint8 dtype

get_intensity(im)#

Compute total intensity image

make_rgb_image(*im)#

Compute RGB image from three-channel image