This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import time | |
import numpy as np | |
from numpy.fft import fft2, ifft2 | |
from matplotlib import pyplot, animation | |
def fft_convolve2d(board, kernal): | |
board_ft = fft2(board) | |
kernal_ft = fft2(kernal) | |
height, width = board_ft.shape |