Answers for "scipy get frequencies of image"

0

scipy get frequencies of image

from PIL import Image
import numpy as np
import scipy.fftpack as fp

## Functions to go from image to frequency-image and back
im2freq = lambda data: fp.rfft(fp.rfft(data, axis=0),
                               axis=1)
freq2im = lambda f: fp.irfft(fp.irfft(f, axis=1),
                             axis=0)
Posted by: Guest on August-21-2021

Python Answers by Framework

Browse Popular Code Answers by Language