Presentation is loading. Please wait.

Presentation is loading. Please wait.

Digital Image Processing Chapter 4 Image Enhancement in the Frequency Domain Part I.

Similar presentations


Presentation on theme: "Digital Image Processing Chapter 4 Image Enhancement in the Frequency Domain Part I."— Presentation transcript:

1 Digital Image Processing Chapter 4 Image Enhancement in the Frequency Domain Part I

2 Background The Analytic Theory of Heat, 1822, Jean Baptiste Joseph Fourier Any function that periodically repeats itself can be expressed as the sum of sines and/or cosines of different frequencies, each multiplied by a different coefficient (Fourier Series) Even non periodic functions can be expressed as the integral of sines and/or cosines multiplied by a weighting function (Fourier Transform) The important characteristic that a function, expressed in either a Fourier series or transform, can be reconstructed (recovered) completely via an inverse process, with no loss of information.

3 Background Fourier series Periodic Signals can be expressed as the sum of sines &/or cosines of different frequency. The Fourier series representation of a real-valued periodic signal f(t) can be written in complex exponential form as Where the Fourier series coefficients are given by And the fundamental frequency is, where is the period. The complex exponential form of the Fourier series can be rewritten in trigonometric form as

4 Background Where the coefficients are given by

5 Fourier Transform The Fourier transform of a continuous function f(x) and its inverse Fourier transform Functions of two variables We call them Fourier transform pair

6 Discrete Fourier Transform The Fourier transform of a discrete function f(x), x=0,1,2,…,M-1 is given by (Discrete Fourier transform, DFT) inverse DFT The multiplier 1/M in front of the Fourier transform sometimes is placed in front of the inverse instead Or, both equations are multiplied by

7 Discrete Fourier Transform Euler’s formula DFT is represented as Each term of the Fourier transform is composed of the sum of all values fo the function f(x). The values of f(x) are multiplied by sines and cosines of various frequencies The domain (values of u) of F(u) is appropriately called frequency domain because u determines the frequency of the components of the transform

8 Discrete Fourier Transform The Fourier transform may be viewed as a “mathematical prism” that separates a function into various components based on frequency content In the analysis of complex numbers, it is convinient to express F(u) in polar coordinates where

9 Discrete Fourier Transform M=1024, A=1, K=8 or 16 The important features to note are that the height of the spectrum doubled as the area under the curve in the x-domain doubled, the number of zeros in the spectrum in the same interval doubled as the length of the function doubled

10 2D DFT and Inverse DFT (IDFT) M, N : image size x, y : image pixel position u, v : spatial frequency f ( x, y ) F ( u, v ) often used short notation:

11 Real Part, Imaginary Part, Magnitude, Phase, Spectrum Real part: Imaginary part: Magnitude-phase representation: Magnitude (spectrum): Phase (spectrum): Power Spectrum:

12 2D Discrete Fourier Transform The relationships between samples in the spatial and frequency domains

13 Frequency Domain Properties Each term of F(u,v) contains all values of f(x,y), modified by the values of exp. It is usually impossible to make direct association between specific components of the image and it transform. The Fourier spectrum shows prominent components along the ±45º directions that correspond to the edges Vertical component that is off-axis slightly to the left is caused by the edges of the oxide protrusions

14 Mean of image/ DC component: Highest frequency component: “Half-shifted” Image: Conjugate Symmetry: Magnitude Symmetry: 2D DFT Properties

15 Spatial domain differentiation: Frequency domain differentiation: Distribution law: Spatial domain Periodicity: Frequency domain periodicity: Laplacian:

16 Computation of 2D-DFT In particular, for N = 4: Fourier transform matrices: remember relationship:

17 Computation of 2D-DFT To compute the 1D-DFT of a 1D signal x (as a vector): To compute the inverse 1D-DFT: To compute the 2D-DFT of an image X (as a matrix): To compute the inverse 2D-DFT:

18 Computation of 2D-DFT: Example A 4x4 image Compute its 2D-DFT: MATLAB function: fft2 lowest frequency component highest frequency component

19 Computation of 2D-DFT: Example Real part:Imaginary part: Magnitude: Phase:

20 Computation of 2D-DFT: Example Compute the inverse 2D-DFT: MATLAB function: ifft2

21 Centered Representation From [Gonzalez & Woods] From Prof. Al Bovik MATLAB function: fftshift Example:

22 Log-Magnitude Visualization 2D-DFT centered

23 Apply to Images 2D-DFT  centered  log intensity transformation


Download ppt "Digital Image Processing Chapter 4 Image Enhancement in the Frequency Domain Part I."

Similar presentations


Ads by Google