SlideShare a Scribd company logo
Fourier Transform


Naveen Sihag
Mathematical Background:
                Complex Numbers
• A complex number x is of the form:



             a: real part, b: imaginary part

• Addition



• Multiplication
Mathematical Background:
            Complex Numbers (cont’d)
• Magnitude-Phase (i.e.,vector) representation



                              Magnitude:

                     Phase:
        φ
                                Phase – Magnitude notation:
Mathematical Background:
           Complex Numbers (cont’d)
• Multiplication using magnitude-phase representation




• Complex conjugate



• Properties
Mathematical Background:
           Complex Numbers (cont’d)
• Euler’s formula




• Properties
                    j
Mathematical Background:
           Sine and Cosine Functions
• Periodic functions
• General form of sine and cosine functions:
Mathematical Background:
Sine and Cosine Functions
  Special case: A=1, b=0, α=1


                           π




                       π
Mathematical Background:
    Sine and Cosine Functions (cont’d)

   • Shifting or translating the sine function by a const b




Note: cosine is a shifted sine function:
                                        π
                       cos(t ) = sin(t + )
                                        2
Mathematical Background:
      Sine and Cosine Functions (cont’d)
• Changing the amplitude A
Mathematical Background:
      Sine and Cosine Functions (cont’d)
• Changing the period T=2π/|α|
     consider A=1, b=0: y=cos(αt)
                                               α =4
                                         period 2π/4=π/2

                                           shorter period
                                          higher frequency
                                        (i.e., oscillates faster)

                                    Frequency is defined as f=1/T

        Alternative notation: sin(αt)=sin(2πt/T)=sin(2πft)
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.
Transformation Kernels

• Forward Transformation                        forward transformation kernel


               M −1 N −1
T (u , v) =    ∑∑ f ( x, y)r ( x, y, u, v)
               x =0 y =0
                                             u = 0,1,..., M − 1, v =0,1,..., N − 1


                                                inverse transformation kernel
• Inverse Transformation
               M −1 N −1
f ( x, y ) =   ∑∑ T (u, v)s( x, y, u, v)
               u =0 v =0
                                             x = 0,1,..., M − 1, y = 0,1,..., N − 1
Kernel Properties

• A kernel is said to be separable if:

           r ( x, y, u, v) = r1 ( x, u )r2 ( y, v)

• A kernel is said to be symmetric if:

          r ( x, y, u , v) = r1 ( x, u )r1 ( y, v)
Notation

• Continuous Fourier Transform (FT)

• Discrete Fourier Transform (DFT)

• Fast Fourier Transform (FFT)
Fourier Series Theorem
• Any periodic function can be expressed as a weighted
  sum (infinite) of sine and cosine functions of varying
  frequency:




             is called the “fundamental frequency”
Fourier Series (cont’d)




                   α1

              α2


              α3
Continuous Fourier Transform (FT)

• Transforms a signal (i.e., function) from the spatial
  domain to the frequency domain.




      (IFT)


                      where
Why is FT Useful?

• Easier to remove undesirable frequencies.

• Faster perform certain operations in the frequency
  domain than in the spatial domain.
Example: Removing undesirable frequencies

                            noisy signal   frequencies




To remove certain        remove high       reconstructed
                         frequencies       signal
frequencies, set their
corresponding F(u)
coefficients to zero!
How do frequencies show up in an image?

• Low frequencies correspond to slowly varying
  information (e.g., continuous surface).
• High frequencies correspond to quickly varying
  information (e.g., edges)




        Original Image      Low-passed
Example of noise reduction using FT
Frequency Filtering Steps

1. Take the FT of f(x):

2. Remove undesired frequencies:

3. Convert back to a signal:


      We’ll talk more about this later .....
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=
Example: rectangular pulse



                            magnitude




rect(x) function   sinc(x)=sin(x)/x
Example: impulse or “delta” function

• Definition of delta function:

• Properties:
Example: impulse or “delta” function (cont’d)

• FT of delta function:




                              1



                          x
                                  u
Example: spatial/frequency shifts


f ( x) ↔ F (u ), then
                                                             Special Cases:

                                                                          − j 2πux0
(1) f ( x − x0 ) ↔ e           − j 2πux0
                                           F (u )   δ ( x − x0 ) ↔ e

                                                        j 2πu0 x
( 2) f ( x ) e   j 2πu0 x
                            ↔ F (u − u 0 )          e              ↔ δ (u − u 0 )
Example: sine and cosine functions

• FT of the cosine function




                     cos(2πu0x)         F(u)


                                  1/2
Example: sine and cosine functions (cont’d)

• FT of the sine function




                                  -jF(u)
                     sin(2πu0x)
Extending FT in 2D

• Forward FT




• Inverse FT
Example: 2D rectangle function
• FT of 2D rectangle function




                                2D sinc()
Discrete Fourier Transform (DFT)
Discrete Fourier Transform (DFT) (cont’d)

• Forward DFT




• Inverse DFT




                                       1/NΔx
Example
Extending DFT to 2D

• Assume that f(x,y) is M x N.

• Forward DFT




• Inverse DFT:
Extending DFT to 2D (cont’d)

• Special case: f(x,y) is N x N.

• Forward DFT

                       u,v = 0,1,2, …, N-1


• Inverse DFT

                       x,y = 0,1,2, …, N-1
Visualizing DFT

• Typically, we visualize |F(u,v)|
• The dynamic range of |F(u,v)| is typically very large

• Apply streching:                               (c is const)




  original image      before scaling     after scaling
DFT Properties: (1) Separability

• The 2D DFT can be computed using 1D transforms only:

   Forward DFT:



   Inverse DFT:



kernel is                      ux + vy                   ux         vy
                      − j 2π (         )        − j 2 π ( ) − j 2π ( )
separable:        e              N
                                           =e            N
                                                          e         N
DFT Properties: (1) Separability (cont’d)

• Rewrite F(u,v) as follows:




• Let’s set:



• Then:
DFT Properties: (1) Separability (cont’d)

• How can we compute F(x,v)?

                                               )



                N x DFT of rows of f(x,y)

• How can we compute F(u,v)?

                               DFT of cols of F(x,v)
DFT Properties: (1) Separability (cont’d)
DFT Properties: (2) Periodicity

• The DFT and its inverse are periodic with period N
DFT Properties: (3) Symmetry

• If f(x,y) is real, then




             (see Table 4.1 for more properties)
DFT Properties: (4) Translation

            f(x,y)            F(u,v)

 • Translation is spatial domain:




• Translation is frequency domain:

                     )
               N
DFT Properties: (4) Translation (cont’d)

• Warning: to show a full period, we need to translate
  the origin of the transform at u=N/2 (or at (N/2,N/2)
  in 2D)
                                                   |F(u)|




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


 Using                    )
                      N
DFT Properties: (4) Translation (cont’d)




                  no translation   after translation
DFT Properties: (5) Rotation

• Rotating f(x,y) by θ rotates F(u,v) by θ
DFT Properties: (6) Addition/Multiplication




 but …
DFT Properties: (7) Scale
DFT Properties: (8) Average value

      Average:



F(u,v) at u=0, v=0:



                      So:
Magnitude and Phase of DFT
• What is more important?




                      magnitude          phase



• Hint: use inverse DFT to reconstruct the image
  using magnitude or phase only information
Magnitude and Phase of DFT (cont’d)
               Reconstructed image using
                magnitude only
               (i.e., magnitude determines the
               contribution of each component!)



                Reconstructed image using
                 phase only
                (i.e., phase determines
                which components are present!)
Magnitude and Phase of DFT (cont’d)

More Related Content

PPTX
FFT Analysis
PPTX
History and Real Life Applications of Fourier Analaysis
PPTX
Fourier Transform
PPTX
Fourier series and applications of fourier transform
PPT
Fft ppt
PPTX
Fast Fourier Transform Analysis
PDF
Fourier Series
PPT
Fourier analysis of signals and systems
FFT Analysis
History and Real Life Applications of Fourier Analaysis
Fourier Transform
Fourier series and applications of fourier transform
Fft ppt
Fast Fourier Transform Analysis
Fourier Series
Fourier analysis of signals and systems

What's hot (20)

PDF
Discrete Fourier Series | Discrete Fourier Transform | Discrete Time Fourier ...
PPTX
Properties of fourier transform
PPTX
Fourier transforms
PPTX
Fourier series Introduction
PPTX
EC8352- Signals and Systems - Unit 2 - Fourier transform
PPTX
Fourier transforms
PPTX
Presentation on fourier transformation
PDF
DSP_2018_FOEHU - Lec 08 - The Discrete Fourier Transform
PPTX
Fourier transforms
PPTX
Discrete fourier transform
PPTX
Sampling theorem
PDF
DSP_FOEHU - MATLAB 04 - The Discrete Fourier Transform (DFT)
PDF
DSP_FOEHU - Lec 07 - Digital Filters
PPTX
Chebyshev filter
PPTX
Lecture No:1 Signals & Systems
PPT
fourier transforms
PDF
Design of FIR filters
PDF
Design of IIR filters
PDF
4.Sampling and Hilbert Transform
PPTX
Discrete Time Fourier Transform
Discrete Fourier Series | Discrete Fourier Transform | Discrete Time Fourier ...
Properties of fourier transform
Fourier transforms
Fourier series Introduction
EC8352- Signals and Systems - Unit 2 - Fourier transform
Fourier transforms
Presentation on fourier transformation
DSP_2018_FOEHU - Lec 08 - The Discrete Fourier Transform
Fourier transforms
Discrete fourier transform
Sampling theorem
DSP_FOEHU - MATLAB 04 - The Discrete Fourier Transform (DFT)
DSP_FOEHU - Lec 07 - Digital Filters
Chebyshev filter
Lecture No:1 Signals & Systems
fourier transforms
Design of FIR filters
Design of IIR filters
4.Sampling and Hilbert Transform
Discrete Time Fourier Transform
Ad

Viewers also liked (20)

PDF
Fourier series and transforms
PDF
Fast Fourier Transform
PPTX
Discrete Fourier Transform
PPT
Fourier transform
PDF
The Fast Fourier Transform (FFT)
PPT
Fourier series
PPTX
Application of fourier series
PPTX
Fourier series
PPT
PPTX
Fourier transform
PDF
Fourier series 1
PPT
Decimation in time and frequency
PPTX
Laplace transform and its applications
PDF
Introduction to Fourier transform and signal analysis
PDF
Dft and its applications
PDF
fourier series
DOCX
Ppt on fft
PDF
Discrete Time Fourier Transform
PPT
Optics Fourier Transform Ii
PPT
Fft
Fourier series and transforms
Fast Fourier Transform
Discrete Fourier Transform
Fourier transform
The Fast Fourier Transform (FFT)
Fourier series
Application of fourier series
Fourier series
Fourier transform
Fourier series 1
Decimation in time and frequency
Laplace transform and its applications
Introduction to Fourier transform and signal analysis
Dft and its applications
fourier series
Ppt on fft
Discrete Time Fourier Transform
Optics Fourier Transform Ii
Fft
Ad

Similar to Fourier transform (20)

PPT
FourierTransform detailed power point presentation
PPTX
imagetransforms1-210417050321.pptx
PDF
Fourier slide
PDF
Signals and Systems Ch 4 5_Fourier Domain
PPTX
Digital Image Processing btech third year
PDF
CS6640_F2014_Fourier_I.pdf
PDF
Fourier transforms & fft algorithm (paul heckbert, 1998) by tantanoid
PPT
Fourier image
PPT
lec-4.ppt COMPUTER VISIONS FOR ENGINEERING
PPT
lec-4.ppt
PPT
lec-4.ppt
PPT
lec-4.ppt
PDF
fouriertransformsiffatanjum-141026230143-conversion-gate01.pdf
PDF
Lecture 9
PPT
Optics Fourier Transform I
PPT
3. convolution fourier
PDF
01fourier
PDF
RES701 Research Methodology_FFT
PDF
DFT,DCT TRANSFORMS.pdf
FourierTransform detailed power point presentation
imagetransforms1-210417050321.pptx
Fourier slide
Signals and Systems Ch 4 5_Fourier Domain
Digital Image Processing btech third year
CS6640_F2014_Fourier_I.pdf
Fourier transforms & fft algorithm (paul heckbert, 1998) by tantanoid
Fourier image
lec-4.ppt COMPUTER VISIONS FOR ENGINEERING
lec-4.ppt
lec-4.ppt
lec-4.ppt
fouriertransformsiffatanjum-141026230143-conversion-gate01.pdf
Lecture 9
Optics Fourier Transform I
3. convolution fourier
01fourier
RES701 Research Methodology_FFT
DFT,DCT TRANSFORMS.pdf

More from Naveen Sihag (20)

PPTX
A P J Abdul Kalam
PPT
Rise to power adolf hitler
PPTX
Networking
PPT
Efective computing
PPT
Bluetooth 1
PPT
Black holes
PPT
Bluetooth 1
PPT
Black holes
PPTX
Visible light communication
PPTX
Variable frequency drives
PPTX
PPT
Transducers
PPTX
Touch screen technology
PPTX
Solids and semiconductors
PPT
Sms &mms
PPTX
Robotics and collision detection
PPT
Renewable energy
PPT
Red tacton
PPT
Pulse code modulation
PPTX
Paper battery
A P J Abdul Kalam
Rise to power adolf hitler
Networking
Efective computing
Bluetooth 1
Black holes
Bluetooth 1
Black holes
Visible light communication
Variable frequency drives
Transducers
Touch screen technology
Solids and semiconductors
Sms &mms
Robotics and collision detection
Renewable energy
Red tacton
Pulse code modulation
Paper battery

Recently uploaded (20)

PPTX
Tissue processing ( HISTOPATHOLOGICAL TECHNIQUE
PPTX
Cell Types and Its function , kingdom of life
PDF
Chinmaya Tiranga quiz Grand Finale.pdf
PDF
Computing-Curriculum for Schools in Ghana
PDF
GENETICS IN BIOLOGY IN SECONDARY LEVEL FORM 3
PDF
LDMMIA Reiki Yoga Finals Review Spring Summer
PDF
Hazard Identification & Risk Assessment .pdf
PDF
Practical Manual AGRO-233 Principles and Practices of Natural Farming
PDF
A systematic review of self-coping strategies used by university students to ...
PPTX
Introduction to Building Materials
PDF
Indian roads congress 037 - 2012 Flexible pavement
PDF
RTP_AR_KS1_Tutor's Guide_English [FOR REPRODUCTION].pdf
PPTX
Introduction-to-Literarature-and-Literary-Studies-week-Prelim-coverage.pptx
PPTX
UNIT III MENTAL HEALTH NURSING ASSESSMENT
PPTX
Final Presentation General Medicine 03-08-2024.pptx
PDF
احياء السادس العلمي - الفصل الثالث (التكاثر) منهج متميزين/كلية بغداد/موهوبين
PDF
SOIL: Factor, Horizon, Process, Classification, Degradation, Conservation
PPTX
Onco Emergencies - Spinal cord compression Superior vena cava syndrome Febr...
PPTX
Lesson notes of climatology university.
PDF
A GUIDE TO GENETICS FOR UNDERGRADUATE MEDICAL STUDENTS
Tissue processing ( HISTOPATHOLOGICAL TECHNIQUE
Cell Types and Its function , kingdom of life
Chinmaya Tiranga quiz Grand Finale.pdf
Computing-Curriculum for Schools in Ghana
GENETICS IN BIOLOGY IN SECONDARY LEVEL FORM 3
LDMMIA Reiki Yoga Finals Review Spring Summer
Hazard Identification & Risk Assessment .pdf
Practical Manual AGRO-233 Principles and Practices of Natural Farming
A systematic review of self-coping strategies used by university students to ...
Introduction to Building Materials
Indian roads congress 037 - 2012 Flexible pavement
RTP_AR_KS1_Tutor's Guide_English [FOR REPRODUCTION].pdf
Introduction-to-Literarature-and-Literary-Studies-week-Prelim-coverage.pptx
UNIT III MENTAL HEALTH NURSING ASSESSMENT
Final Presentation General Medicine 03-08-2024.pptx
احياء السادس العلمي - الفصل الثالث (التكاثر) منهج متميزين/كلية بغداد/موهوبين
SOIL: Factor, Horizon, Process, Classification, Degradation, Conservation
Onco Emergencies - Spinal cord compression Superior vena cava syndrome Febr...
Lesson notes of climatology university.
A GUIDE TO GENETICS FOR UNDERGRADUATE MEDICAL STUDENTS

Fourier transform

  • 2. Mathematical Background: Complex Numbers • A complex number x is of the form: a: real part, b: imaginary part • Addition • Multiplication
  • 3. Mathematical Background: Complex Numbers (cont’d) • Magnitude-Phase (i.e.,vector) representation Magnitude: Phase: φ Phase – Magnitude notation:
  • 4. Mathematical Background: Complex Numbers (cont’d) • Multiplication using magnitude-phase representation • Complex conjugate • Properties
  • 5. Mathematical Background: Complex Numbers (cont’d) • Euler’s formula • Properties j
  • 6. Mathematical Background: Sine and Cosine Functions • Periodic functions • General form of sine and cosine functions:
  • 7. Mathematical Background: Sine and Cosine Functions Special case: A=1, b=0, α=1 π π
  • 8. Mathematical Background: Sine and Cosine Functions (cont’d) • Shifting or translating the sine function by a const b Note: cosine is a shifted sine function: π cos(t ) = sin(t + ) 2
  • 9. Mathematical Background: Sine and Cosine Functions (cont’d) • Changing the amplitude A
  • 10. Mathematical Background: Sine and Cosine Functions (cont’d) • Changing the period T=2π/|α| consider A=1, b=0: y=cos(αt) α =4 period 2π/4=π/2 shorter period higher frequency (i.e., oscillates faster) Frequency is defined as f=1/T Alternative notation: sin(αt)=sin(2πt/T)=sin(2πft)
  • 11. 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.
  • 12. Transformation Kernels • Forward Transformation forward transformation kernel M −1 N −1 T (u , v) = ∑∑ f ( x, y)r ( x, y, u, v) x =0 y =0 u = 0,1,..., M − 1, v =0,1,..., N − 1 inverse transformation kernel • Inverse Transformation M −1 N −1 f ( x, y ) = ∑∑ T (u, v)s( x, y, u, v) u =0 v =0 x = 0,1,..., M − 1, y = 0,1,..., N − 1
  • 13. Kernel Properties • A kernel is said to be separable if: r ( x, y, u, v) = r1 ( x, u )r2 ( y, v) • A kernel is said to be symmetric if: r ( x, y, u , v) = r1 ( x, u )r1 ( y, v)
  • 14. Notation • Continuous Fourier Transform (FT) • Discrete Fourier Transform (DFT) • Fast Fourier Transform (FFT)
  • 15. Fourier Series Theorem • Any periodic function can be expressed as a weighted sum (infinite) of sine and cosine functions of varying frequency: is called the “fundamental frequency”
  • 17. Continuous Fourier Transform (FT) • Transforms a signal (i.e., function) from the spatial domain to the frequency domain. (IFT) where
  • 18. Why is FT Useful? • Easier to remove undesirable frequencies. • Faster perform certain operations in the frequency domain than in the spatial domain.
  • 19. Example: Removing undesirable frequencies noisy signal frequencies To remove certain remove high reconstructed frequencies signal frequencies, set their corresponding F(u) coefficients to zero!
  • 20. How do frequencies show up in an image? • Low frequencies correspond to slowly varying information (e.g., continuous surface). • High frequencies correspond to quickly varying information (e.g., edges) Original Image Low-passed
  • 21. Example of noise reduction using FT
  • 22. Frequency Filtering Steps 1. Take the FT of f(x): 2. Remove undesired frequencies: 3. Convert back to a signal: We’ll talk more about this later .....
  • 23. 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=
  • 24. Example: rectangular pulse magnitude rect(x) function sinc(x)=sin(x)/x
  • 25. Example: impulse or “delta” function • Definition of delta function: • Properties:
  • 26. Example: impulse or “delta” function (cont’d) • FT of delta function: 1 x u
  • 27. Example: spatial/frequency shifts f ( x) ↔ F (u ), then Special Cases: − j 2πux0 (1) f ( x − x0 ) ↔ e − j 2πux0 F (u ) δ ( x − x0 ) ↔ e j 2πu0 x ( 2) f ( x ) e j 2πu0 x ↔ F (u − u 0 ) e ↔ δ (u − u 0 )
  • 28. Example: sine and cosine functions • FT of the cosine function cos(2πu0x) F(u) 1/2
  • 29. Example: sine and cosine functions (cont’d) • FT of the sine function -jF(u) sin(2πu0x)
  • 30. Extending FT in 2D • Forward FT • Inverse FT
  • 31. Example: 2D rectangle function • FT of 2D rectangle function 2D sinc()
  • 33. Discrete Fourier Transform (DFT) (cont’d) • Forward DFT • Inverse DFT 1/NΔx
  • 35. Extending DFT to 2D • Assume that f(x,y) is M x N. • Forward DFT • Inverse DFT:
  • 36. Extending DFT to 2D (cont’d) • Special case: f(x,y) is N x N. • Forward DFT u,v = 0,1,2, …, N-1 • Inverse DFT x,y = 0,1,2, …, N-1
  • 37. Visualizing DFT • Typically, we visualize |F(u,v)| • The dynamic range of |F(u,v)| is typically very large • Apply streching: (c is const) original image before scaling after scaling
  • 38. DFT Properties: (1) Separability • The 2D DFT can be computed using 1D transforms only: Forward DFT: Inverse DFT: kernel is ux + vy ux vy − j 2π ( ) − j 2 π ( ) − j 2π ( ) separable: e N =e N e N
  • 39. DFT Properties: (1) Separability (cont’d) • Rewrite F(u,v) as follows: • Let’s set: • Then:
  • 40. DFT Properties: (1) Separability (cont’d) • How can we compute F(x,v)? ) N x DFT of rows of f(x,y) • How can we compute F(u,v)? DFT of cols of F(x,v)
  • 41. DFT Properties: (1) Separability (cont’d)
  • 42. DFT Properties: (2) Periodicity • The DFT and its inverse are periodic with period N
  • 43. DFT Properties: (3) Symmetry • If f(x,y) is real, then (see Table 4.1 for more properties)
  • 44. DFT Properties: (4) Translation f(x,y) F(u,v) • Translation is spatial domain: • Translation is frequency domain: ) N
  • 45. DFT Properties: (4) Translation (cont’d) • Warning: to show a full period, we need to translate the origin of the transform at u=N/2 (or at (N/2,N/2) in 2D) |F(u)| |F(u-N/2)|
  • 46. DFT Properties: (4) Translation (cont’d) • To move F(u,v) at (N/2, N/2), take Using ) N
  • 47. DFT Properties: (4) Translation (cont’d) no translation after translation
  • 48. DFT Properties: (5) Rotation • Rotating f(x,y) by θ rotates F(u,v) by θ
  • 49. DFT Properties: (6) Addition/Multiplication but …
  • 51. DFT Properties: (8) Average value Average: F(u,v) at u=0, v=0: So:
  • 52. Magnitude and Phase of DFT • What is more important? magnitude phase • Hint: use inverse DFT to reconstruct the image using magnitude or phase only information
  • 53. Magnitude and Phase of DFT (cont’d) Reconstructed image using magnitude only (i.e., magnitude determines the contribution of each component!) Reconstructed image using phase only (i.e., phase determines which components are present!)
  • 54. Magnitude and Phase of DFT (cont’d)