Professional Documents
Culture Documents
Chapter 4
Filtering in the Frequency Domain
Chapter 4
Filtering in the Frequency Domain
j 2 t
F ( ) f (t ) e dt
j 2 t
f (t ) F ( ) e d
Chapter 4
Filtering in the Frequency Domain
sin( W )
F ( ) AW
( W )
Sinc(0)=1, & sinc(m)=0, for all other values of m
Chapter 4
Filtering in the Frequency Domain
Chapter 4
Filtering in the Frequency Domain
Chapter 4
Filtering in the Frequency Domain
Chapter 4
Filtering in the Frequency Domain
M 1
F (u ) f ( x )e j 2 ux / M u 0 ,1,.... M 1
x0
M 1
1
f (x) F ( u ) e j 2 ux / M x 0 ,1,......, M 1
M u 0
Chapter 4
Filtering in the Frequency Domain
if t=z=0
(t , z )
(t , z ) dtdz 1
0 otherwise
Chapter 4
Filtering in the Frequency Domain
An example for 2-D continuous Fourier Transform Pair f(t,z) And F(µ,v)
Chapter 4
Filtering in the Frequency Domain
1 1
T Z
2 µ max 2 v max
Chapter 4
Filtering in the Frequency Domain
Aliasing in Images: There are two principal manifestations of aliasing in images: spatial
aliasing and temporal aliasing. Spatial aliasing is due to under sampling.
Temporal aliasing is related to time intervals between images in a sequence of images. Common
example is “wagon wheel effect”, in which wheels with spokes in a sequence of images appear
to be rotating back ward, because frame rate being too low w.r.t othe speed of wheel rotation in a
sequence
Chapter 4
Filtering in the Frequency Domain
2 D DFT PAIR:
M 1 N 1 j 2 ( ux / M vy / N )
F (u , v ) x 0 y 0
f ( x, y ) e
1 M 1 N 1 j 2 ( ux / M vy / N )
f ( x, y )
MN
u 0 v0 F (u, v) e
2 D DFT IN POLAR FORM:
j ( u ,v ) 1 M 1 N 1
F (u, v) F (u, v) e F (0,0) MN x0 y 0
f ( x, y)
MN
DC component of the transform = MN * average value of f(x,y).
x y
To center the spreaded spectrum, we multiply, ‘f’ with 1
f (x, y)(1)x y F(u M / 2, v N / 2)
© 1992–2008 R. C. Gonzalez & R. E. Woods
Digital Image Processing, 3rd ed.
Gonzalez & Woods
www.ImageProcessingPlace.com
Chapter 4
Filtering in the Frequency Domain
Chapter 4
Filtering in the Frequency Domain
Chapter 4
Filtering in the Frequency Domain
Chapter 4
Filtering in the Frequency Domain
Chapter 4
Filtering in the Frequency Domain
Chapter 4
Filtering in the Frequency Domain
Chapter 4
Filtering in the Frequency Domain
Chapter 4
Filtering in the Frequency Domain
We note two features: strong edges that run approximately at ± 450 and two white oxide protrusions.
The spectrum shows prominent components along ± 450 directions that correspond to edges . When
observing along vertical axis, we see a vertical component that is off-axis slightly to the left, caused
by the edge of the oxide protrusion.
© 1992–2008 R. C. Gonzalez & R. E. Woods
Digital Image Processing, 3rd ed.
Gonzalez & Woods
www.ImageProcessingPlace.com
Chapter 4
Filtering in the Frequency Domain
Chapter 4
Filtering in the Frequency Domain
The link between filtering in the spatial and frequency domains is the convolution.
Taking the advantage of properties of both domains is to specify a filter in
frequency domain, compute its IDFT, and then use the resulting , full size spatial filter
as a guide for constructing smaller spatial filter masks.
u2 / 2 2
Let H(u) denote the 1-D frequency domain Gaussian filter, H(u) Ae
Where σ is the standard deviation of the gaussian curve. The corresponding filter in
spatial domain is
2 2 2 x 2
h( x) 2 Ae
They are Fourier transform pair, both components of which are Gaussian and real. We
do not have to be considered with complex numbers. Gaussian curves are easy to
manipulate. The functions behave reciprocally.
When H(u) has broad profile, h(x) has narrow profile and vice versa.
Digital Image Processing, 3rd ed.
Gonzalez & Woods
www.ImageProcessingPlace.com
Chapter 4
Filtering in the Frequency Domain
Chapter 4
Filtering in the Frequency Domain
Smoothing is achieved in the frequency domain by high freq. attenuation. i.e. Low pass
filtering.
Here we consider 3 types of LPFs: ideal, Butterwoth and Gaussian. These three categories
cover the range from very sharp(ideal) to very smooth (Gaussian) filtering. The Butter worth
filter has a parameter called the filter order.
Ideal Low Pass filters: A 2-D low pass filter that passes without attenuation all frequencies
within a circle of radius Do from the origin and cuts off all frequencies outside this circle is
called ideal LPF.
1 if D(u,v) ≤ Do
H(u, v)
0 if D(u,v) > Do
Where Do is a positive constant and D(u,v) is the distance between a point(u,v) in the
frequency domain and the center of the frequency rectangle; that is,
D (u, v) [(u P / 2) 2 (v Q / 2) 2 ]1/ 2
Where as P, Q are padded sizes. Point of transition between 1 to 0 is cutoff frequency.
•The sharp cutoff frequencies of an ILPF cannot be realized with electronic
components, although they certainly can be simulated in a computer.
•We study the LPFs behaviour as a function of same cutoff frequencies.
•We establish set of standard cutoff frequency loci to compute circles that enclose
specified amounts of total image power PT. Power spectrum of padded images at
each point(u,v).i.e,
P 1 Q 1
PT
u0 v0
P (u , v )
Digital Image Processing, 3rd ed.
Gonzalez & Woods
www.ImageProcessingPlace.com
Chapter 4
Filtering in the Frequency Domain
If DFT has been centered, a circle of radius Do with origin at the center of frequency rectangle
encloses α percent of power and summation is taken over values of (u,v) that lie inside the circle or on
boundary
100 [ P ( u , v ) / PT ]
u v
Chapter 4
Filtering in the Frequency Domain
Chapter 4
Filtering in the Frequency Domain
Chapter 4
Filtering in the Frequency Domain
A high pass filter is obtained from a given LPF using the equation
0 if D(u,v) ≤ Do
H(u, v)
1 if D(u,v) > Do
Chapter 4
Filtering in the Frequency Domain
Chapter 4
Filtering in the Frequency Domain
Chapter 4
Filtering in the Frequency Domain
Chapter 4
Filtering in the Frequency Domain
Chapter 4
Filtering in the Frequency Domain
Chapter 4
Filtering in the Frequency Domain
Chapter 4
Filtering in the Frequency Domain
Chapter 4
Filtering in the Frequency Domain
Chapter 4
Filtering in the Frequency Domain
Chapter 4
Filtering in the Frequency Domain
SELECTIVE FILTEREING:
Chapter 4
Filtering in the Frequency Domain
Notch Filters:
A notch filter rejects or passes frequencies in a predefined neighborhood about the center of the
frequency rectangle . Notch reject filter is constructed as
Q
H NR (u , v ) H k (u , v ) H k (u , v )
k 1
Hk(u,v) and H-k(u,v) are high pass filters whose centers are at (uk ,vk) and (-uk ,-vk) respectively
H NP (u, v) 1 H NR (u, v)