1 / 47

Fourier Transform

Fourier Transform. CS 474/674 – Prof. Bebis Sections 4.1, 4.2, 4.4, 4.5, 4.6. Image Transforms. Many times, image processing tasks are best performed in a domain other than the spatial domain. Key steps (1) Transform the image (2) Carry the task(s) in the transformed domain .

sophiaevans
Download Presentation

Fourier Transform

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Fourier Transform CS 474/674 – Prof. Bebis Sections 4.1, 4.2, 4.4, 4.5, 4.6

  2. Image Transforms • Many times, image processing tasks are best performed in a domain other than the spatial domain. • Key steps (1) Transform the image (2) Carry the task(s) in the transformed domain. (3) Apply inverse transform to return to the spatial domain.

  3. Transformation Kernels forward transformation kernel • Forward Transformation • Inverse Transformation inverse transformation kernel

  4. Kernel Properties • A kernel is said to be separable if: • A kernel is said to be symmetric if:

  5. Fourier Series Theorem • Any periodic function f(t) can be expressed as a weighted sum (infinite) of sine and cosine functions of increasing frequency: is called the “fundamental frequency” t t

  6. Fourier Series (cont’d) α1 α2 α3

  7. Continuous Fourier Transform (FT) • Transforms a signal (i.e., function) from the spatial (x) domain to the frequency (u) domain. where

  8. Definitions • F(u) is a complex function: • Magnitude of FT (spectrum): • Phase of FT: • Magnitude-Phase representation: • Power of f(x): P(u)=|F(u)|2=

  9. Why is FT Useful? • Easier to remove undesirable frequencies in the frequency domain. • Faster to perform certain operations in the frequency domain than in the spatial domain. • This assumes using the Fast Fourier Transform (FFT) to transform the data from the spatial domain to the frequency domain and back.

  10. Frequency Filtering: Main Steps 1. Take the FT of f(x): 2. Remove undesired frequencies: 3. Convert back to a signal: We’ll talk more about these steps later .....

  11. Example: Removing undesirable frequencies frequencies noisy signal remove high frequencies reconstructed signal

  12. Another Example: noise reduction using FT Input image Spectrum (frequency domain) Band-reject filter Output image

  13. How do frequencies show up in an image? • Low frequencies correspond to slowly varying pixel intensities (e.g., continuous surface). • High frequencies correspond to quickly varying pixel intensities (e.g., edges) Original Image Low-passed

  14. Common FT Pairs

  15. FT Example: rectangular pulse magnitude rect(x) function sinc(x)=sin(x)/x

  16. FT Example: impulse or “delta” function • Definition of delta function: • Properties:

  17. FT Example: impulse or “delta” function • Definition of delta function: • Properties:

  18. 1 x u FT Example: impulse or “delta” function (cont’d) • FT of delta function:

  19. FT Example: spatial/frequency shifts (translation) Special Cases:

  20. FT Example: sine and cosine functions • FT of the cosine function cos(2πu0x) F(u) 1/2

  21. FT Example: sine and cosine functions (cont’d) • FT of the sine function jF(u) sin(2πu0x)

  22. Extending FT in 2D • Forward FT • Inverse FT

  23. Example: 2D rectangle function • FT of 2D rectangle function 2D sinc() top view

  24. Discrete Fourier Transform (DFT) Δx: sampling step in spatial domain

  25. Discrete Fourier Transform (DFT) (cont’d) • Forward DFT • Inverse DFT Δu: sampling step in frequency domain 1/(NΔx)

  26. Example

  27. Extending DFT to 2D • Assume that f(x,y) is M x N. • Forward DFT • Inverse DFT:

  28. Extending DFT to 2D (cont’d) • Special case: f(x,y) is N x N. • Forward DFT • Inverse DFT u,v = 0,1,2, …, N-1 x,y = 0,1,2, …, N-1

  29. Extending DFT to 2D (cont’d) 2D cos/sin functions Interpretation:

  30. Visualizing DFT • Typically, we visualize |F(u,v)| • The dynamic range of |F(u,v)| is typically very large • Apply streching: (c is a const) |D(u,v)| |F(u,v)| original image before stretching after stretching

  31. DFT Properties: (1) Separability • The 2D DFT can be computed using 1D transforms only: Forward DFT: kernel is separable:

  32. DFT Properties: (1) Separability (cont’d) • Rewrite F(u,v) as follows: • Let’s set: • Then:

  33. ) DFT Properties: (1) Separability (cont’d) • How can we compute F(x,v)? • How can we compute F(u,v)? N x DFT of rows of f(x,y) DFT of cols of F(x,v)

  34. DFT Properties: (1) Separability (cont’d)

  35. DFT Properties: (2) Periodicity • The DFT and its inverse are periodic with period N

  36. DFT Properties: (3) Symmetry

  37. f(x,y) F(u,v) ) N DFT Properties: (4) Translation • Translation in spatial domain: • Translation in frequency domain:

  38. DFT Properties: (4) Translation (cont’d) • To “see” a full period, we need to translate the origin of the transform at u=N/2 (or (N/2,N/2) in 2D) |F(u)| |F(u-N/2)|

  39. ) ) N N DFT Properties: (4) Translation (cont’d) • To move F(u,v) at (N/2, N/2), take

  40. DFT Properties: (4) Translation (cont’d) sinc sinc no translation after translation

  41. DFT Properties: (5) Rotation • Rotating f(x,y) by θ rotates F(u,v) by θ

  42. DFT Properties: (6) Addition/Multiplication but …

  43. DFT Properties: (7) Scale

  44. DFT Properties: (8) Average value Average: F(u,v) at u=0, v=0: So:

  45. Magnitude and Phase of DFT • What is more important? • Hint: use the inverse DFT to reconstruct the input image using only magnitude or phase information magnitude phase

  46. Magnitude and Phase of DFT (cont’d) Reconstructed image using magnitude only (i.e., magnitude determines the strength of each component) Reconstructed image using phase only (i.e., phase determines the phase of each component)

  47. Magnitude and Phase of DFT (cont’d) only phase only magnitude phase (woman) magnitude (rectangle) phase (rectangle) magnitude (woman)

More Related