【发布时间】:2014-07-06 09:28:12
【问题描述】:
我已经阅读了很多关于高斯模糊和 FFT 的关于 SO 的问题,但没有回答如何实现它的步骤(但有一些类似“这是你的作业”的 cmets)。我想知道,如何正确填充内核并在内核和图像上使用 FFT 和 IFFT。您能否提供一些伪代码或任何语言(如 Java、Python 等)的实现,或者至少提供一些如何理解它的好教程:
1. FFT the image
2. FFT the kernel, padded to the size of the image
3. multiply the two in the frequency domain (equivalent to convolution in the spatial domain)
4. IFFT (inverse FFT) the result
从Gaussian blur and FFT复制的步骤
【问题讨论】:
标签: image-processing filtering fft gaussian gaussianblur