fouier transformation in python open cv 1

fouier transformation in python open cv

f = np.fft.fft2(img)
fshift = np.fft.fftshift(f)
fshift = np.fft.ifftshift(fshift)

Here is what the above code is Doing:
1. fft2: Compute the 2-dimensional discrete Fourier Transform.
2. fftshift: Shift the zero-frequency component to the center of the spectrum.
3. ifftshift: The inverse of fftshift.

Similar Posts