deconvolve

Contents

deconvolve#

scarlet2.fft.deconvolve(image, kernel, padding=3, axes=None, fft_shape=None, return_fft=False)[source]#

Deconvolve image with a kernel

This is usually unstable. Treat with caution!

Parameters:
  • image (array) – Image array

  • kernel (array) – Convolution kernel array

  • padding (int) – Additional padding to use when generating the FFT to supress artifacts.

  • axes (tuple or None) – Axes that contain the spatial information for the PSFs.

  • fft_shape (tuple or None) – “Fast” shape of the image used to generate the FFT. If None, it will be determined automatically.

  • return_fft (bool) – If True, return the FFT of the convolved image. If False, return the image in real space. Default: False