neodroidvision.regression.patching.denoise.spectral_denoise_3d.fft3_im_denoise¶
- neodroidvision.regression.patching.denoise.spectral_denoise_3d.fft3_im_denoise(img: ndarray, keep_fraction: float = 0.1) ndarray [source]¶
a blur with an FFT
Implements, via FFT, the following convolution:
\[\]f_1(t) = int dt’, K(t-t’) f_0(t’)
\[ilde{f}_1(\omega) = ilde{K}(\omega) ilde{f}_0(\omega)\]# keep_fraction - Define the fraction of coefficients (in each direction) we keep
Compute the 3d FFT of the input image Filter in FFT Reconstruct the final image
- Parameters
keep_fraction –
img –
- Returns
- Return type