AsinhNorm#

class scarlet2.plot.AsinhNorm(min_value, max_value, beta)[source]#

Bases: Norm

AsinhNorm class

Norm that scales as arcsinh(I / beta) between m and M

See Lupton+(2004) https://ui.adsabs.harvard.edu/abs/2004PASP..116..133L

Parameters:
  • min_value (float) – Minimum value to consider

  • max_value (float) – Maximum value to consider

  • beta (float) – Turnover point of arcsinh. Below it norm behaves linear, above it norm approximates ln(2*I)

__call__(img)[source]#

Compute Asinh 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

set_rgb_max(img, vibrance=0.15)[source]#

Set maximum value of normalized image

Parameters:
  • img (array) – Three-channel image

  • vibrance (float) – Allowance to exceed normalization of three-channel image. Makes images more vibrant but causes slight color shifts towards white in the highlights.