Download presentation
Presentation is loading. Please wait.
Published bySpencer Payne Modified over 7 years ago
1
Image Enhancement in the Frequency Domain Dian Nuswantoro University Ferda Ernawan, Ph.D
2
The content of lecture This lecture will cover: Fourier Transform
Discrete Fourier Transform-1D Fast Fourier Transform-1D Advantage and Disadvantage of FFT DCT-1D DFT-2D operations DCT-2D Basic Step Filtering in the frequency domain Smoothing frequency domain filter
3
Jean Baptiste Joseph Fourier
The Fourier Transform The Fourier Transform is a mathematical procedure which can be thought of as transforming a function from the time domain to the frequency domain. A modified form of the Fourier Transform, known as the discrete Fourier transform (DFT), it is used sample (discrete) signals. Another signal transforms is fast Fourier transform (FFT), it distinguishes itself from the Fourier transform. FFT allows the DFT of a sampled signal to be obtained rapidly and efficiently to be evaluated with a significant reduction in the amount of calculation required Jean Baptiste Joseph Fourier
4
The Fourier Transform The Fourier Transform is a fundamental importance to image processing. The Fourier transform provides an explicit method for converting from time domain to frequencies domain. The following defines the Fourier transform of : Based on the mathematical identity that relates these constants to the sine and cosine function:
5
Discrete Fourier Transform-1D
A modified form of the Fourier Transform, known as the Discrete Fourier Transform (DFT), uses sample discrete signals. The performance of DFT requires the order of computations involving complex arithmetic operations, addition and multiplication. The outcome of DFT is a set of sine and cosine coefficients. The inverse Discrete Fourier Transform is given by the following equation:
6
Fast Fourier Transform-1D
Another signal transform is Fast Fourier Transform (FFT). It distinguishes itself from the Fourier transform. FFT allows the Discrete Fourier Transform of a sampled signal to be obtained rapidly and efficiently so as to be evaluated with a significant reduction in the amount of calculation required. The Fast Fourier Transform is simply a class of special algorithms which manipulate the DFT with considerable savings in computational time.
7
Fast Fourier Transform-1D
According to Johnson and Frigo (2007), Fast Fourier Transform algorithms compute the DFT of size N in operation. The FFT is an algorithm which is designed to compute the DFT very efficiently. FFT is a complex transform which requires operation on an imaginary number and special algorithm.
8
FFT-1D FFT is the collection of computationally efficient algorithms that perform the discrete Fourier transform (Lo, Miri & Tet, 2005). FFT is applied in order to convert signals into the frequency domain. The following equation defines the fast Fourier transform of: The inverse Fast Fourier Transform is given by the following equation:
9
Advantage of FFT The Fast Fourier Transform takes advantage of the symmetry and periodicity properties of the Fourier Transform to reduce computation time. FFT algorithm reduces the time complexity from to (Guo-qiang & Ming-he, 2005). Many FFT algorithms operate by the divide-and conquer method. In this process, the transform is partitioned into a sequence of reduced- length transforms that are collectively performed with reduced workload (Rapuano & Harris, 2007).
10
Disadvantage of FFT The FFT technique also has limitation in its performance. FFT is a complex transform which requires operating on an imaginary number and especial algorithm. It is a complex exponential that defines a complex sinusoid with frequency.
11
Discrete Fourier Transform-2D
The Discrete Fourier Transform of f(x, y), for x = 0, 1, 2…M-1 and y = 0,1,2…N-1, denoted by F(u, v), is given by the equation: for u = 0, 1, 2…M-1 and v = 0, 1, 2…N-1.
12
DFT-2D Operation
13
Inverse Discrete Fourier Transform-2D
It is really important to note that the Fourier transform is completely reversible. The inverse DFT is given by: for x = 0, 1, 2…M-1 and y = 0, 1, 2…N-1
14
DCT The Discrete Cosine Transform (DCT) is one of the most well known transforms in image processing, and is used in many different fields, including JPEG compression. The DCT is a Fourier-Related transform similar to the discrete Fourier transform (DFT), but it only uses the real numbers. It is equivalent to a Discrete Fourier Transform (DFT) of most probably twice the length, operating real data with even symmetry, where in some variants the input and output data are shifted by half a sample.
15
Discrete Cosine Transform-1D
The Discrete Cosine Transform (DCT) was introduced by Ahmed, Natarajam and Rao (1997). DCT is a discrete transform whose kernel is defined by the cosine function. where all the coefficient are real number and
16
Inverse DCT-1D The inverse of DCT (IDCT) is given in the following equation: where all the coefficient are real number and
17
DCT-2D The inverse DCT of coefficient F(u,v) are given by:
The DCT of a signal f(x,y) are given as follows: The inverse DCT of coefficient F(u,v) are given by: Where
18
Review Remember-The purpose of the transformation domain is to transform the value of pixels to the spatial frequencies. Suggested readings: implementation issues on DFT-2D in Matlab (Gonzalez Section 4.6)
19
Image Enhancement Filtering In the Frequency Domain
20
Basic steps for filtering in the frequency domain
To filter an image in the frequency domain: Compute F(u,v) the DFT of the image Multiply F(u,v) by a filter function H(u,v) Compute the inverse DFT of the result
21
Smoothing Frequency Domain Filters
Smoothing is achieved in the frequency domain by dropping out the high frequency components. The basic model for filtering is: G(u,v) = H(u,v)F(u,v) where F(u,v) is the Fourier transform of the image being filtered and H(u,v) is the filter transform function.
22
cont… The transfer function for the ideal low pass filter can be given as: where D(u,v) is the distance from point (u,v), the equation is given as:
23
Gaussian Lowpass Filters
The transfer function of a Gaussian lowpass filter is defined as:
24
Gaussian High Pass Filters
The Gaussian high pass filter is given as: where D0 is the cut off distance as before
25
Sharpening in the Frequency Domain
sharpen (or shows the edges of) an image Edges and fine detail in images are associated with high frequency components. High pass filters – only pass the high frequencies, drop the low ones High pass frequencies are precisely the reverse of low pass filters, so: Hhp(u, v) = 1 – Hlp(u, v)
26
Gaussian High Pass Filters (cont…)
Results of Gaussian high pass filtering with D0 = 15 , D0 = 30, D0 = 80
27
High Pass Filtering Result
Results of Gaussian high pass filtering with D0 = 15
28
High Pass Filtering Result
Results of Gaussian high pass filtering with D0 = 30
29
High Pass Filtering Result
Results of Gaussian high pass filtering with D0 = 45
30
References Johnson, S.G. and Frigo, M. (2007). A Modified Split-Radix FFT With Fewer Arithmetic Operations. IEEE Transactions on Signal Processing, Vol. 55, No. 1, pp Lo, S.C., Miri, A., Tet, H.Y. (2005). Efficient FPGA implementation of FFT based multipliers. Canadian Conference on Electrical and Computer Engineering, pp Rapuano, S. and Harris, F. (2007). An Introduction to FFT and Time Domain Windows. IEEE Instrumentation and Measurement Magazine, Vol. 10, No.6, pp
31
Practicum : Sharpening in the frequency domain
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.