Image Enhancement in the - PowerPoint PPT Presentation

1 / 40
About This Presentation
Title:

Image Enhancement in the

Description:

Fourier s idea : Any periodic function can be represented as a sum of sine and ... the real domain we have to convolve the impulse function with the spatial ... – PowerPoint PPT presentation

Number of Views:40
Avg rating:3.0/5.0
Slides: 41
Provided by: discovery5
Category:

less

Transcript and Presenter's Notes

Title: Image Enhancement in the


1
Chapter 4 Image Enhancement in the Frequency
Domain
Fourier s idea Any periodic function can be
represented as a sum of sine and cosine
functions, with appropriate amplitudes and
phases. Since we represent an image by a
two-dimensional function f(x,y), we can represent
it as a sum of sines and cosines, if it is
periodic. If the function is not periodic, we
have to use a generalization of the Fourier
series representation, known as the Fourier
Transform.
2
Development of Fourier Series
3
Any function f(x) which is periodic and is
integrable can be represented (expanded) as
This can be conveniently written in exponential
form as
4
The Cns are known as the Fourier
coefficients. The original function can be
reconstructed from a knowledge of all the Fourier
coefficients. If the function is non-periodic,
i.e., L , n/L can take continuous values. We set
n/L u (called spatial frequency). Therefore
5
This relation can be inverted to give
F(u) is known as the Fourier Transform of f(x).
It is analogous to cn . This can be easily
generalized to two-dimensions
6
The Meaning of the Fourier Transform Let f(x)
sin(2puox). The representation of this function
in the Fourier Space, would be
7
  • function (also called impulse function)
  • Property

Also area under the delta function 1
8
Rectangular or box function f(x) 1 for a lt
x lt a 0 for x gt a
f(x)
-a 0 a
9
Fourier Transform of rect function
10
(No Transcript)
11
Does this remind you of something? Clue Optical
phenomena which you studied in Physics-I/MT-I Ans
The diffraction pattern of a single slit! In
fact, this is true in general. Diffraction
patterns are the FT of the aperture.
12
  • Points to ponder
  • Reciprocal nature of F(u) and f(x). Here the
    width of the central peak is inversely
    proportional to a (the width of f(x)). This is a
    general property of the Fourier transform.
  • F(u) is complex (in general).
  • Sharp changes in the image (f(x)) give rise to
    peaks at large values of u.
  • The phase part of F(u) gives us information about
    where these sharp changes occur.

13
DISCRETE FOURIER TRANSFORM (DFT)
Inverse DFT
14
Proof Substituting for F(u) in the definition of
inverse DFT, we get
15
If x x, then the summand 1, otherwise it is
zero. How?
Phasor addition Here M6 let (x-x)1,
therefore Angle between successive phasors
2p/6 Therefore the summation over u equals M if
(x-x)0 and the other summation has only one
term. Hence the proof.
16
Alternatively The sum for f(x) is equal to
17
  • ADDITIONAL PROPERTIES OF THE DFT
  • PERIODICITY F(uM)F(u)
  • This follows from the definition of the DFT.

18
Due to the periodic nature of the DFT, the
Fourier spectrum may appear scrambled if we
apply it directly on an image. Consider the
Fourier spectrum of a 2-D rectangular (or box)
function. Direct application of the DFT would
give rise to a scrambled Fourier Transform.
19
Fourier Spectrum of a white rectangle
20
Centering the Fourier Transform can be done by
multiplying the Image by (-1)(xy) before taking
the Fourier Transform. We can show that this
centers the Transfrom. From the definition of
DFT
21
  • Significance of Fourier components
  • The zero frequency component , F(0,0) is equal to
    the average gray level (intensity) of the image.
  • Proof

22
Fourier Spectrum of typical images
23
  • BASIC STEPS FOR FILTERING IN THE FREQUENCY DOMAIN
  • Multiply the input image by (-1)(xy) to center
    the transform
  • Compute F(u,v)
  • Multiply F(u,v) by a filter function H(u,v)
    (component wise)
  • Compute the inverse DFT
  • Obtain the real part of the result in (4)
  • Multiply the result by (-1)(xy)

24
(No Transcript)
25
NOTCH FILTER Sets average to zero Display is
scaled by setting most negative to zero
26
Low pass filtering Result is similar to averaging
27
IDEAL LOW PASS FILTER
28
(No Transcript)
29
EFFECT OF APPLYING AN IDEAL LOW PASS FILTER
RINGING
30
What is the origin of ringing? To understand
ringing we need to understand an operation
called convolution.
Convolution, is usually defined as
This is similar to averaging
31
If the domain of the functions is continuous,
then convolution is defined as
Let us now consider convolution in 1-d and look
at its Fourier transform
32
Therefore, convolution in the spatial domain is
equivalent to multiplication in the Fourier
Domain and vice-versa.
Let us consider a simple point image (impulse
function). The Fourier transform of this would be
a constant. We multiply this by the filter
function. Hence in the real domain we have to
convolve the impulse function with the spatial
representation of the filter function. The
filter function in the spatial domain will have
circular symmetry. It has a central peak and it
reduces in height as we move away from the origin
33
RINGING
34
In order to avoid ringing Ideal Low pass filter
is not used. Other filters are available
Gaussian and Butterworth Filters. For ringing to
be absent, the filter function should have a
spatial representation which varies monotnically.
This is true for Gaussian function and the I
order Butterworth filter.
35
Gaussian Filters
36
Why does the Gaussian filter not suffer from
ringing? To understand this, let us look at
its spatial representation.
Converting this integral to polar co-ordinates,
we have
37
Butterworth Low pass filters
38
Butterworth Low pass filters
Here D(u,v) is the distance from the origin , D0
is the distance of the cut-off frequency from the
origin and n is the order of the Butterworth
filter. Sharper cutoffs are obtained with higher
values of n but at the cost of increase in
ringing effect.
39
EFFECT OF FILTERING WITH BUTTERWORTH FILTERS
40
(No Transcript)
Write a Comment
User Comments (0)
About PowerShow.com