Digital Image Processing Homework II Fast Fourier Transform 2012/03/28 Chih-Hung Lu ( 呂志宏 ) Visual Communications Laboratory Department of Communication Engineering National Central University ChungLi, Taiwan
The Goal of This Homework Implement Fast Fourier Transform. Implement Inverse Fast Fourier Transform. Implement Notch Filter.
Work Chart 3 FFT Filtering (Notch Filter) IFFT
To compute a discrete Fourier transform: N: number of pixel f(x): value of pixel x: pixel position F(u): value of frequency u: frequency Rewritten as: where Fast Fourier Transform(1/3) 4
Fast Fourier Transform(2/3) Assume N= 2 n, Let N=2M. 5
Fast Fourier Transform(3/3) 6 Because (e jx = cos(x) + j sin(x))
Fast Fourier Transform(8 points) 7
Inverse Fast Fourier Transform 8 To compute a Inverse Fourier transform: N: number of pixel f(x): value of pixel x: pixel position F(u): value of frequency u: frequency where
Notch Filter 9 Ideal Notch Reject Filter: H: Filter Set F(0,0) to zero & leave all other frequency components of the Fourier transform untouched.
Display of Frequency Spectrum 10 Modulation in space domain: Moving (0,0) to the central in image. Log transformation Example:
Grading FFT (3 points) Filtering (3 points) IFFT (2 points) Report (2 points) Computation complexity (Bonus 1 points) Other properties (Bonus 1 points)
Demo Schedule Thursday night, 19 April, Begin around at 19:00 at R3-307.(VCLab) NOTE: We will use another image to test your code. The details will be announced on our course website. ( )
References Paul Heckbert, Fourier Transforms and the Fast Fourier Transform (FFT) Algorithm er.pdf er.pdf J.W. Cooley and J.W. Tukey, “An algorithm for the machine calculation of complex Fourier series”, Math. Computation, 19: , 1965.