mergernet.data.image.asinh_map2#

mergernet.data.image.asinh_map2(x: ndarray, gain: float = 1) ndarray[source]#

Apply the following non-linear map to input matrix. Useful to rescale telescope pixels for viewing.

\[Y = \frac{\textrm{arcsinh}(\alpha X)}{\sqrt{\alpha}}\]

where \(\alpha\) is the gain, \(X\) is the input image and \(Y\) is the transformed image.

Parameters:
  • x (numpy.ndarray) – image to have map applied

  • gain (float, optional) – gain applied to input image

Returns:

transformed image

Return type:

numpy.ndarray