convolve#
- scarlet2.fft.convolve(image, kernel, padding=3, axes=None, fft_shape=None, return_fft=False)[source]#
Convolve image with a kernel
- Parameters:
image (
array) – Image arraykernel (
array) – Convolution kernel arraypadding (
int) – Additional padding to use when generating the FFT to supress artifacts.axes (
tupleorNone) – Axes that contain the spatial information for the PSFs.fft_shape (
tupleorNone) – “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