astro.denoising.denoise#

DENOISE.

This module defines a function to perform galaxy image denoising using wavelets.

denoise(image, n_scales=4)[source]#

Denoise.

This function provides a denoised version of the input image.

Parameters
  • image (numpy.ndarray) – Input image

  • n_scales (int) – Number of wavelet scales to use

Returns

Denoised image

Return type

numpy.ndarray

Examples

>>> import numpy as np
>>> from astro.denoising.denoise import denoise
>>> data = np.arange(9).reshape((3, 3)) * 0.1
>>> denoise(data)
array([[0.15000001, 0.21250004, 0.27500001],
       [0.39121097, 0.40000004, 0.4087891 ],
       [0.52500004, 0.58750004, 0.65000004]])