FFT on image with Python
问题 I have a problem with FFT implementation in Python. I have completely strange results. Ok so, I want to open image, get value of every pixel in RGB, then I need to use fft on it, and convert to image again. My steps: 1) I'm opening image with PIL library in Python like this from PIL import Image im = Image.open("test.png") 2) I'm getting pixels pixels = list(im.getdata()) 3) I'm seperate every pixel to r,g,b values for x in range(width): for y in range(height): r,g,b = pixels[x*width+y] red[x