LinearPercentileNorm#
- class scarlet2.plot.LinearPercentileNorm(img, percentiles=(1, 99))[source]#
Bases:
LinearNormClass for linear normalization based on percentiles
Norm that is linear between the two elements of percentiles of img
- Parameters:
img (
array) – Image to normalizepercentiles (
array-like, optional) – Lower and upper percentile to consider. Pixel values below will be set to zero, above to saturated. Default is (1, 99)
- __call__(im)#
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