So I suppose to calculate the convolution between Fourier Transformed image and the mask.
from scipy import fftpack import numpy as np import imageio from PIL