scipy.ndimage.fourier.fourier_uniform

scipy.ndimage.fourier.fourier_uniform(input, size, n=-1, axis=-1, output=None)

Multi-dimensional Uniform fourier filter.

The array is multiplied with the fourier transform of a box of given sizes. If the parameter n is negative, then the input is assumed to be the result of a complex fft. If n is larger or equal to zero, the input is assumed to be the result of a real fft, and n gives the length of the of the array before transformation along the the real transform direction. The axis of the real transform is given by the axis parameter.