Ch04_Frequency Domain Image Processing
Ch04_Frequency Domain Image Processing
1
4.1 Introduction to Frequency
Domain
In spatial domain, we deal with images as it
is. The value of the pixels of the image
change with respect to scene.
Whereas in frequency domain, we deal with
the rate at which the pixel values are
changing in spatial domain.
We use the Fourier transform to go from the
spatial to the frequency domain; to return to
the spatial domain we use the inverse Fourier
transform.
2
4.2 Fourier series
where
4
Fourier Transform
6
4.3 Frequency Spectrum
7
(a) A box function, (b) its Fourier transform, and (c) its spectrum.
4.4 Continuous 2-D Fourier
Transform and Its Inverse
Let f(t,z) be a continuous function of two
continuous variables, t and z. The two
dimensional, continuous Fourier transform is
given by the expressions
9
4.5 Discrete 2-D Fourier
Transform And Its Inverse
The 2-D discrete Fourier transform (DFT) is
given by:
10
…cont’d
11
Fourier Spectrum And Phase
Angle
Because the 2-D DFT is complex in general,
it can be expressed in polar form:
15
…cont’d
16
4.7 Image Enhancement in
Frequency Domain
Image enhancement is the process of making
images more useful.
The reason for doing this include:
Highlighting
Remove nose from images interesting detail in
images
Making images more visually appealing
17
Types of enhancement Techniques
18
Frequency Domain Filtering
Fundamentals
Filtering in the frequency domain consists of
modifying the Fourier transform of an image,
then computing the inverse transform to
obtain the spatial domain representation of
the processed result.
Thus, given (a padded) digital image, f(x,y),
of size PxQ pixels, the basic filtering equation
in which we are interested has the form:
20
Filtering steps in Frequency
Domain
The process of filtering in the frequency
domain can:
1. Given an input image f(x,y) of size MxN,
obtain the padding sizes P and Q using
P=2M and Q=2N.
2. Form a padded image fp (x,y) of size PxQ
using zero-, mirror-, or replicate padding
3. Multiply fp (x,y) by (-1)x+y to center the Fourier
transform on the PxQ frequency rectangle.
4. Compute the DFT, , of the image from
Step 3. 21
…cont’d
22
…cont’d
23
Example
Step 7 Step 8
24
Frequency Domain Filtering
25
Lowpass Frequency domain
Filtering
Edges and other sharp intensity transitions
(such as noise) in an image contribute
significantly to the high frequency content of
its Fourier transform.
Hence, smoothing (blurring) is achieved in
the frequency domain by high-frequency
attenuation.
Attenuating high frequency and passing low
frequency is know as lawpass filtering.
Three types of lowpass filters: ideal,
Butterworth, and Gaussian. 26
Ideal Lowpass Filters
a b c
d e f
(a) Original image. (b)–(f) Results of filtering using ILPFs with cutoff
frequencies set at radii values 10, 30, 60, 160, and 460
29
Gaussian Lowpass Filters
31
…cont’d
33
…cont’d
34
…cont’d
37
…cont’d
38
Ideal Highpass Filters
39
…cont’d
40
…cont’d
41
Gaussian Highpass Filters
42
…cont’d
43
Butterworth Highpass Filters
44
…cont’d
45
…cont’d
46