mergernet.data.image.asinh_map#

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

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

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

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