def op(self, img):
""" This method calculates the masked Fourier transform of a 2-D image.
Parameters
----------
img: np.ndarray
input 2D array with the same shape as the mask.
Returns
-------
x: np.ndarray
masked Fourier transform of the input image.
"""
return self._mask * pfft.fft2(img)
评论列表
文章目录