SlideShare a Scribd company logo
1 of 62
1
of
54
Image Enhancement
Filtering in the Frequency Domain
2
of
54
Contents
Image Processing in the frequency domain
• Image smoothing
• Image sharpening
The Discrete Fourier transform
3
of
54
The Discrete Fourier Transform (DFT)
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.
∑∑
−
=
−
=
+−
=
1
0
1
0
)//(2
),(),(
M
x
N
y
NvyMuxj
eyxfvuF π
4
of
54
DFT & Images
The DFT of a two dimensional image can be
visualised by showing the spectrum of the
images component frequencies
ImagestakenfromGonzalez&Woods,DigitalImageProcessing(2002)
DFT
5
of
54
DFT & Images
ImagestakenfromGonzalez&Woods,DigitalImageProcessing(2002)
6
of
54
DFT & Images
ImagestakenfromGonzalez&Woods,DigitalImageProcessing(2002)
7
of
54
DFT & Images (cont…)
ImagestakenfromGonzalez&Woods,DigitalImageProcessing(2002)
DFT
Scanning electron microscope
image of an integrated circuit
magnified ~2500 times
Fourier spectrum of the image
8
of
54
DFT & Images (cont…)
ImagestakenfromGonzalez&Woods,DigitalImageProcessing(2002)
9
of
54
DFT & Images (cont…)
ImagestakenfromGonzalez&Woods,DigitalImageProcessing(2002)
10
of
54
The Inverse DFT
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
∑∑
−
=
−
=
+
=
1
0
1
0
)//(2
),(
1
),(
M
u
N
v
NvyMuxj
evuF
MN
yxf π
11
of
54
The DFT and Image Processing
To filter an image in the frequency domain:
1. Compute F(u,v) the DFT of the image
2. Multiply F(u,v) by a filter function H(u,v)
3. Compute the inverse DFT of the result
ImagestakenfromGonzalez&Woods,DigitalImageProcessing(2002)
12
of
54
Some Basic Frequency Domain Filters
ImagestakenfromGonzalez&Woods,DigitalImageProcessing(2002)
Low Pass Filter
High Pass Filter
13
of
54
Some Basic Frequency Domain Filters
ImagestakenfromGonzalez&Woods,DigitalImageProcessing(2002)
14
of
54
Some Basic Frequency Domain Filters
ImagestakenfromGonzalez&Woods,DigitalImageProcessing(2002)
15
of
54
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
Low pass filters – only pass the low frequencies,
drop the high ones
16
of
54
Ideal Low Pass Filter
Simply cut off all high frequency components that
are a specified distance D0 from the origin of the
transform
changing the distance changes the behaviour of
the filter
ImagestakenfromGonzalez&Woods,DigitalImageProcessing(2002)
17
of
54
Ideal Low Pass Filter (cont…)
The transfer function for the ideal low pass filter
can be given as:
where D(u,v) is given as:



>
≤
=
0
0
),(if0
),(if1
),(
DvuD
DvuD
vuH
2/122
])2/()2/[(),( NvMuvuD −+−=
18
of
54
Ideal Low Pass Filter (cont…)
Above we show an image, it’s Fourier spectrum
and a series of ideal low pass filters of radius 5,
15, 30, 80 and 230 superimposed on top of it
ImagestakenfromGonzalez&Woods,DigitalImageProcessing(2002)
19
of
54
Ideal Low Pass Filter (cont…)
ImagestakenfromGonzalez&Woods,DigitalImageProcessing(2002)
20
of
54
Ideal Low Pass Filter (cont…)
ImagestakenfromGonzalez&Woods,DigitalImageProcessing(2002)
21
of
54
Ideal Low Pass Filter (cont…)
ImagestakenfromGonzalez&Woods,DigitalImageProcessing(2002)
Original
image
Result of filtering
with ideal low pass
filter of radius 5
Result of filtering
with ideal low pass
filter of radius 30
Result of filtering
with ideal low pass
filter of radius 230
Result of filtering
with ideal low pass
filter of radius 80
Result of filtering
with ideal low pass
filter of radius 15
22
of
54
Ideal Low Pass Filter (cont…)
ImagestakenfromGonzalez&Woods,DigitalImageProcessing(2002)
Result of filtering
with ideal low pass
filter of radius 5
23
of
54
Ideal Low Pass Filter (cont…)
ImagestakenfromGonzalez&Woods,DigitalImageProcessing(2002)
Result of filtering
with ideal low pass
filter of radius 15
24
of
54
Butterworth Lowpass Filters
The transfer function of a Butterworth lowpass
filter of order n with cutoff frequency at distance
D0 from the origin is defined as:
ImagestakenfromGonzalez&Woods,DigitalImageProcessing(2002)
n
DvuD
vuH 2
0 ]/),([1
1
),(
+
=
25
of
54
Butterworth Lowpass Filter (cont…)
ImagestakenfromGonzalez&Woods,DigitalImageProcessing(2002)
Original
image
Result of filtering
with Butterworth filter
of order 2 and cutoff
radius 5
Result of filtering
with Butterworth
filter of order 2 and
cutoff radius 30
Result of filtering
with Butterworth filter
of order 2 and cutoff
radius 230
Result of filtering with
Butterworth filter of
order 2 and cutoff
radius 80
Result of filtering with
Butterworth filter of
order 2 and cutoff
radius 15
26
of
54
Butterworth Lowpass Filter (cont…)
ImagestakenfromGonzalez&Woods,DigitalImageProcessing(2002)
Original
image
Result of filtering
with Butterworth filter
of order 2 and cutoff
radius 5
27
of
54
Butterworth Lowpass Filter (cont…)
ImagestakenfromGonzalez&Woods,DigitalImageProcessing(2002)
Result of filtering with
Butterworth filter of
order 2 and cutoff
radius 15
28
of
54
Gaussian Lowpass Filters
The transfer function of a Gaussian lowpass
filter is defined as:
ImagestakenfromGonzalez&Woods,DigitalImageProcessing(2002)
2
0
2
2/),(
),( DvuD
evuH −
=
29
of
54
Gaussian Lowpass Filters (cont…)
ImagestakenfromGonzalez&Woods,DigitalImageProcessing(2002)
Original
image
Result of filtering
with Gaussian filter
with cutoff radius 5
Result of filtering
with Gaussian filter
with cutoff radius 30
Result of filtering
with Gaussian filter
with cutoff radius
230
Result of filtering
with Gaussian
filter with cutoff
radius 85
Result of filtering
with Gaussian
filter with cutoff
radius 15
30
of
54
Lowpass Filters Compared
Result of filtering
with ideal low pass
filter of radius 15
Result of filtering
with Butterworth
filter of order 2
and cutoff radius
15
Result of filtering
with Gaussian
filter with cutoff
radius 15
ImagestakenfromGonzalez&Woods,DigitalImageProcessing(2002)
31
of
54
Lowpass Filtering Examples
A low pass Gaussian filter is used to connect
broken text
ImagestakenfromGonzalez&Woods,DigitalImageProcessing(2002)
32
of
54
Lowpass Filtering Examples
ImagestakenfromGonzalez&Woods,DigitalImageProcessing(2002)
33
of
54
Lowpass Filtering Examples (cont…)
Different lowpass Gaussian filters used to
remove blemishes in a photograph
ImagestakenfromGonzalez&Woods,DigitalImageProcessing(2002)
34
of
54
Lowpass Filtering Examples (cont…)
ImagestakenfromGonzalez&Woods,DigitalImageProcessing(2002)
35
of
54
Lowpass Filtering Examples (cont…)
Original
image
Gaussian lowpass
filter
Processed
image
Spectrum of
original image
ImagestakenfromGonzalez&Woods,DigitalImageProcessing(2002)
36
of
54
Sharpening in the Frequency Domain
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)
37
of
54
Ideal High Pass Filters
The ideal high pass filter is given as:
where D0 is the cut off distance as before



>
≤
=
0
0
),(if1
),(if0
),(
DvuD
DvuD
vuH
ImagestakenfromGonzalez&Woods,DigitalImageProcessing(2002)
38
of
54
Ideal High Pass Filters (cont…)
Results of ideal
high pass filtering
with D0 = 15
Results of ideal
high pass filtering
with D0 = 30
Results of ideal
high pass filtering
with D0 = 80
ImagestakenfromGonzalez&Woods,DigitalImageProcessing(2002)
39
of
54
Butterworth High Pass Filters
The Butterworth high pass filter is given as:
where n is the order and D0 is the cut off
distance as before
n
vuDD
vuH 2
0 )],(/[1
1
),(
+
=
ImagestakenfromGonzalez&Woods,DigitalImageProcessing(2002)
40
of
54
Butterworth High Pass Filters (cont…)
Results of
Butterworth
high pass
filtering of
order 2 with
D0 = 15
Results of
Butterworth
high pass
filtering of
order 2 with
D0 = 80
Results of Butterworth high pass
filtering of order 2 with D0 = 30
ImagestakenfromGonzalez&Woods,DigitalImageProcessing(2002)
41
of
54
Gaussian High Pass Filters
The Gaussian high pass filter is given as:
where D0 is the cut off distance as before
2
0
2
2/),(
1),( DvuD
evuH −
−=
ImagestakenfromGonzalez&Woods,DigitalImageProcessing(2002)
42
of
54
Gaussian High Pass Filters (cont…)
Results of
Gaussian
high pass
filtering with
D0 = 15
Results of
Gaussian
high pass
filtering with
D0 = 80
Results of Gaussian high pass
filtering with D0 = 30
ImagestakenfromGonzalez&Woods,DigitalImageProcessing(2002)
43
of
54
Highpass Filter Comparison
Results of ideal
high pass filtering
with D0 = 15
ImagestakenfromGonzalez&Woods,DigitalImageProcessing(2002)
44
of
54
Highpass Filter Comparison
Results of Butterworth
high pass filtering of order
2 with D0 = 15
ImagestakenfromGonzalez&Woods,DigitalImageProcessing(2002)
45
of
54
Highpass Filter Comparison
Results of Gaussian
high pass filtering with
D0 = 15
ImagestakenfromGonzalez&Woods,DigitalImageProcessing(2002)
46
of
54
Highpass Filter Comparison
Results of ideal
high pass filtering
with D0 = 15
Results of Gaussian
high pass filtering with
D0 = 15
Results of Butterworth
high pass filtering of order
2 with D0 = 15
ImagestakenfromGonzalez&Woods,DigitalImageProcessing(2002)
47
of
54
Highpass Filter Comparison
Results of ideal
high pass filtering
with D0 = 15
ImagestakenfromGonzalez&Woods,DigitalImageProcessing(2002)
48
of
54
Highpass Filter Comparison
Results of Butterworth
high pass filtering of order
2 with D0 = 15
ImagestakenfromGonzalez&Woods,DigitalImageProcessing(2002)
49
of
54
Highpass Filter Comparison
Results of Gaussian
high pass filtering with
D0 = 15
ImagestakenfromGonzalez&Woods,DigitalImageProcessing(2002)
50
of
54
Highpass Filtering ExampleOriginalimage
Highpassfilteringresult
Highfrequency
emphasisresult
Afterhistogram
equalisation
ImagestakenfromGonzalez&Woods,DigitalImageProcessing(2002)
51
of
54
Highpass Filtering Example
52
of
54
Highpass Filtering Example
53
of
54
Highpass Filtering Example
54
of
54
Highpass Filtering Example
55
of
54
Laplacian In The Frequency DomainLaplacianinthe
frequencydomain
2-DimageofLaplacian
inthefrequency
domain
InverseDFTof
Laplacianinthe
frequencydomain
Zoomed section of
the image on the
left compared to
spatial filter
ImagestakenfromGonzalez&Woods,DigitalImageProcessing(2002)
56
of
54
Frequency Domain Laplacian Example
Original
image
Laplacian
filtered
image
Laplacian
image scaled
Enhanced
image
57
of
54
Fast Fourier Transform
The reason that Fourier based techniques have
become so popular is the development of the
Fast Fourier Transform (FFT) algorithm
Allows the Fourier transform to be carried out in
a reasonable amount of time
Reduces the amount of time required to perform
a Fourier transform by a factor of 100 – 600
times!
58
of
54
Frequency Domain Filtering & Spatial
Domain Filtering
Similar jobs can be done in the spatial and
frequency domains
Filtering in the spatial domain can be easier to
understand
Filtering in the frequency domain can be much
faster – especially for large images
59
of
54
Summary
In this lecture we examined image
enhancement in the frequency domain
– The Fourier series & the Fourier transform
– Image Processing in the frequency domain
• Image smoothing
• Image sharpening
– Fast Fourier Transform
Next time we will begin to examine image
restoration using the spatial and frequency
based techniques we have been looking at
60
of
54
Imteresting Application Of Frequency
Domain Filtering
61
of
54
Imteresting Application Of Frequency
Domain Filtering
62
of
54
Questions?
?

More Related Content

What's hot

Enhancement in frequency domain
Enhancement in frequency domainEnhancement in frequency domain
Enhancement in frequency domainAshish Kumar
 
Digital Image Processing - Frequency Filters
Digital Image Processing - Frequency FiltersDigital Image Processing - Frequency Filters
Digital Image Processing - Frequency FiltersAly Abdelkareem
 
Smoothing in Digital Image Processing
Smoothing in Digital Image ProcessingSmoothing in Digital Image Processing
Smoothing in Digital Image ProcessingPallavi Agarwal
 
Image Restoration (Frequency Domain Filters):Basics
Image Restoration (Frequency Domain Filters):BasicsImage Restoration (Frequency Domain Filters):Basics
Image Restoration (Frequency Domain Filters):BasicsKalyan Acharjya
 
04 1 - frequency domain filtering fundamentals
04 1 - frequency domain filtering fundamentals04 1 - frequency domain filtering fundamentals
04 1 - frequency domain filtering fundamentalscpshah01
 
Frequency domain methods
Frequency domain methods Frequency domain methods
Frequency domain methods thanhhoang2012
 
Lec 07 image enhancement in frequency domain i
Lec 07 image enhancement in frequency domain iLec 07 image enhancement in frequency domain i
Lec 07 image enhancement in frequency domain iAli Hassan
 
Digital Image restoration
Digital Image restorationDigital Image restoration
Digital Image restorationMd Shabir Alam
 
Image Restoration
Image RestorationImage Restoration
Image RestorationPoonam Seth
 
Sharpening using frequency Domain Filter
Sharpening using frequency Domain FilterSharpening using frequency Domain Filter
Sharpening using frequency Domain Filterarulraj121
 
Digital Image Processing: Image Restoration
Digital Image Processing: Image RestorationDigital Image Processing: Image Restoration
Digital Image Processing: Image RestorationMostafa G. M. Mostafa
 
Image Restoration (Order Statistics Filters)
Image Restoration (Order Statistics Filters)Image Restoration (Order Statistics Filters)
Image Restoration (Order Statistics Filters)Kalyan Acharjya
 
Wavelet transform in two dimensions
Wavelet transform in two dimensionsWavelet transform in two dimensions
Wavelet transform in two dimensionsAyushi Gagneja
 
Computer Vision - Image Filters
Computer Vision - Image FiltersComputer Vision - Image Filters
Computer Vision - Image FiltersYoss Cohen
 

What's hot (20)

Enhancement in frequency domain
Enhancement in frequency domainEnhancement in frequency domain
Enhancement in frequency domain
 
Lecture 10
Lecture 10Lecture 10
Lecture 10
 
Digital Image Processing - Frequency Filters
Digital Image Processing - Frequency FiltersDigital Image Processing - Frequency Filters
Digital Image Processing - Frequency Filters
 
Smoothing in Digital Image Processing
Smoothing in Digital Image ProcessingSmoothing in Digital Image Processing
Smoothing in Digital Image Processing
 
Image Restoration (Frequency Domain Filters):Basics
Image Restoration (Frequency Domain Filters):BasicsImage Restoration (Frequency Domain Filters):Basics
Image Restoration (Frequency Domain Filters):Basics
 
04 1 - frequency domain filtering fundamentals
04 1 - frequency domain filtering fundamentals04 1 - frequency domain filtering fundamentals
04 1 - frequency domain filtering fundamentals
 
04 enhancement frequency
04 enhancement frequency04 enhancement frequency
04 enhancement frequency
 
Unit3 dip
Unit3 dipUnit3 dip
Unit3 dip
 
Chapter 5
Chapter 5Chapter 5
Chapter 5
 
Frequency domain methods
Frequency domain methods Frequency domain methods
Frequency domain methods
 
Lec 07 image enhancement in frequency domain i
Lec 07 image enhancement in frequency domain iLec 07 image enhancement in frequency domain i
Lec 07 image enhancement in frequency domain i
 
Digital Image restoration
Digital Image restorationDigital Image restoration
Digital Image restoration
 
Image Restoration
Image RestorationImage Restoration
Image Restoration
 
Sharpening using frequency Domain Filter
Sharpening using frequency Domain FilterSharpening using frequency Domain Filter
Sharpening using frequency Domain Filter
 
Digital Image Processing: Image Restoration
Digital Image Processing: Image RestorationDigital Image Processing: Image Restoration
Digital Image Processing: Image Restoration
 
Image Restoration (Order Statistics Filters)
Image Restoration (Order Statistics Filters)Image Restoration (Order Statistics Filters)
Image Restoration (Order Statistics Filters)
 
Wavelet transform in two dimensions
Wavelet transform in two dimensionsWavelet transform in two dimensions
Wavelet transform in two dimensions
 
Module 31
Module 31Module 31
Module 31
 
Computer Vision - Image Filters
Computer Vision - Image FiltersComputer Vision - Image Filters
Computer Vision - Image Filters
 
Lect5 v2
Lect5 v2Lect5 v2
Lect5 v2
 

Similar to Unit1 image transform

Frequency Domain Filtering 1.ppt
 Frequency Domain Filtering 1.ppt Frequency Domain Filtering 1.ppt
Frequency Domain Filtering 1.pptManishKumawat77
 
ch-2.5 Image Enhancement in FREQUENCY Domain.pptx
ch-2.5 Image Enhancement in FREQUENCY  Domain.pptxch-2.5 Image Enhancement in FREQUENCY  Domain.pptx
ch-2.5 Image Enhancement in FREQUENCY Domain.pptxsatyanarayana242612
 
Image filtering in Digital image processing
Image filtering in Digital image processingImage filtering in Digital image processing
Image filtering in Digital image processingAbinaya B
 
Frequency Domain FIltering.pdf
Frequency Domain FIltering.pdfFrequency Domain FIltering.pdf
Frequency Domain FIltering.pdfMuhammad_Ilham_21
 
DIGITAL IMAGE PROCESSING - Day 4 Image Transform
DIGITAL IMAGE PROCESSING - Day 4 Image TransformDIGITAL IMAGE PROCESSING - Day 4 Image Transform
DIGITAL IMAGE PROCESSING - Day 4 Image Transformvijayanand Kandaswamy
 
An introduction to discrete wavelet transforms
An introduction to discrete wavelet transformsAn introduction to discrete wavelet transforms
An introduction to discrete wavelet transformsLily Rose
 
Design Technique of Bandpass FIR filter using Various Window Function
Design Technique of Bandpass FIR filter using Various Window FunctionDesign Technique of Bandpass FIR filter using Various Window Function
Design Technique of Bandpass FIR filter using Various Window FunctionIOSR Journals
 
Design Technique of Bandpass FIR filter using Various Window Function
Design Technique of Bandpass FIR filter using Various Window FunctionDesign Technique of Bandpass FIR filter using Various Window Function
Design Technique of Bandpass FIR filter using Various Window FunctionIOSR Journals
 
06 spatial filtering DIP
06 spatial filtering DIP06 spatial filtering DIP
06 spatial filtering DIPbabak danyal
 
Spatial filtering
Spatial filteringSpatial filtering
Spatial filteringDeepikaT13
 
Filtering an image is to apply a convolution
Filtering an image is to apply a convolutionFiltering an image is to apply a convolution
Filtering an image is to apply a convolutionAbhishek Mukherjee
 
Digital Image Processing: Image Enhancement in the Frequency Domain
Digital Image Processing: Image Enhancement in the Frequency DomainDigital Image Processing: Image Enhancement in the Frequency Domain
Digital Image Processing: Image Enhancement in the Frequency DomainMostafa G. M. Mostafa
 
Design of digital filters
Design of digital filtersDesign of digital filters
Design of digital filtersNaila Bibi
 
IIR filter design, Digital signal processing
IIR filter design, Digital signal processingIIR filter design, Digital signal processing
IIR filter design, Digital signal processingAbhishek Thakkar
 

Similar to Unit1 image transform (20)

Frequency Domain Filtering 1.ppt
 Frequency Domain Filtering 1.ppt Frequency Domain Filtering 1.ppt
Frequency Domain Filtering 1.ppt
 
ch-2.5 Image Enhancement in FREQUENCY Domain.pptx
ch-2.5 Image Enhancement in FREQUENCY  Domain.pptxch-2.5 Image Enhancement in FREQUENCY  Domain.pptx
ch-2.5 Image Enhancement in FREQUENCY Domain.pptx
 
Image filtering in Digital image processing
Image filtering in Digital image processingImage filtering in Digital image processing
Image filtering in Digital image processing
 
Image processing 2
Image processing 2Image processing 2
Image processing 2
 
Frequency Domain FIltering.pdf
Frequency Domain FIltering.pdfFrequency Domain FIltering.pdf
Frequency Domain FIltering.pdf
 
Assignment 3Fourier.docx
Assignment 3Fourier.docxAssignment 3Fourier.docx
Assignment 3Fourier.docx
 
DIGITAL IMAGE PROCESSING - Day 4 Image Transform
DIGITAL IMAGE PROCESSING - Day 4 Image TransformDIGITAL IMAGE PROCESSING - Day 4 Image Transform
DIGITAL IMAGE PROCESSING - Day 4 Image Transform
 
Lecture 6
Lecture 6Lecture 6
Lecture 6
 
An introduction to discrete wavelet transforms
An introduction to discrete wavelet transformsAn introduction to discrete wavelet transforms
An introduction to discrete wavelet transforms
 
Design Technique of Bandpass FIR filter using Various Window Function
Design Technique of Bandpass FIR filter using Various Window FunctionDesign Technique of Bandpass FIR filter using Various Window Function
Design Technique of Bandpass FIR filter using Various Window Function
 
Design Technique of Bandpass FIR filter using Various Window Function
Design Technique of Bandpass FIR filter using Various Window FunctionDesign Technique of Bandpass FIR filter using Various Window Function
Design Technique of Bandpass FIR filter using Various Window Function
 
234456743edc.pdf
234456743edc.pdf234456743edc.pdf
234456743edc.pdf
 
06 spatial filtering DIP
06 spatial filtering DIP06 spatial filtering DIP
06 spatial filtering DIP
 
Spatial filtering
Spatial filteringSpatial filtering
Spatial filtering
 
Design of Filters PPT
Design of Filters PPTDesign of Filters PPT
Design of Filters PPT
 
Filtering an image is to apply a convolution
Filtering an image is to apply a convolutionFiltering an image is to apply a convolution
Filtering an image is to apply a convolution
 
Digital Image Processing: Image Enhancement in the Frequency Domain
Digital Image Processing: Image Enhancement in the Frequency DomainDigital Image Processing: Image Enhancement in the Frequency Domain
Digital Image Processing: Image Enhancement in the Frequency Domain
 
Design of digital filters
Design of digital filtersDesign of digital filters
Design of digital filters
 
IIR filter design, Digital signal processing
IIR filter design, Digital signal processingIIR filter design, Digital signal processing
IIR filter design, Digital signal processing
 
chap3.ppt
chap3.pptchap3.ppt
chap3.ppt
 

Recently uploaded

Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...roncy bisnoi
 
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...ranjana rawat
 
chapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineeringchapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineeringmulugeta48
 
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and workingUNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and workingrknatarajan
 
Thermal Engineering Unit - I & II . ppt
Thermal Engineering  Unit - I & II . pptThermal Engineering  Unit - I & II . ppt
Thermal Engineering Unit - I & II . pptDineshKumar4165
 
Extrusion Processes and Their Limitations
Extrusion Processes and Their LimitationsExtrusion Processes and Their Limitations
Extrusion Processes and Their Limitations120cr0395
 
Online banking management system project.pdf
Online banking management system project.pdfOnline banking management system project.pdf
Online banking management system project.pdfKamal Acharya
 
UNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular ConduitsUNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular Conduitsrknatarajan
 
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...ranjana rawat
 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performancesivaprakash250
 
data_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfdata_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfJiananWang21
 
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfKamal Acharya
 
Call for Papers - International Journal of Intelligent Systems and Applicatio...
Call for Papers - International Journal of Intelligent Systems and Applicatio...Call for Papers - International Journal of Intelligent Systems and Applicatio...
Call for Papers - International Journal of Intelligent Systems and Applicatio...Christo Ananth
 
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordCCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordAsst.prof M.Gokilavani
 
Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01KreezheaRecto
 
UNIT-III FMM. DIMENSIONAL ANALYSIS
UNIT-III FMM.        DIMENSIONAL ANALYSISUNIT-III FMM.        DIMENSIONAL ANALYSIS
UNIT-III FMM. DIMENSIONAL ANALYSISrknatarajan
 

Recently uploaded (20)

Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
 
Roadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and RoutesRoadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and Routes
 
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
 
chapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineeringchapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineering
 
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and workingUNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
 
Thermal Engineering Unit - I & II . ppt
Thermal Engineering  Unit - I & II . pptThermal Engineering  Unit - I & II . ppt
Thermal Engineering Unit - I & II . ppt
 
Extrusion Processes and Their Limitations
Extrusion Processes and Their LimitationsExtrusion Processes and Their Limitations
Extrusion Processes and Their Limitations
 
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
 
Online banking management system project.pdf
Online banking management system project.pdfOnline banking management system project.pdf
Online banking management system project.pdf
 
UNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular ConduitsUNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular Conduits
 
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performance
 
Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024
 
data_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfdata_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdf
 
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
 
Call for Papers - International Journal of Intelligent Systems and Applicatio...
Call for Papers - International Journal of Intelligent Systems and Applicatio...Call for Papers - International Journal of Intelligent Systems and Applicatio...
Call for Papers - International Journal of Intelligent Systems and Applicatio...
 
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordCCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
 
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
 
Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01
 
UNIT-III FMM. DIMENSIONAL ANALYSIS
UNIT-III FMM.        DIMENSIONAL ANALYSISUNIT-III FMM.        DIMENSIONAL ANALYSIS
UNIT-III FMM. DIMENSIONAL ANALYSIS
 

Unit1 image transform

  • 2. 2 of 54 Contents Image Processing in the frequency domain • Image smoothing • Image sharpening The Discrete Fourier transform
  • 3. 3 of 54 The Discrete Fourier Transform (DFT) 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. ∑∑ − = − = +− = 1 0 1 0 )//(2 ),(),( M x N y NvyMuxj eyxfvuF π
  • 4. 4 of 54 DFT & Images The DFT of a two dimensional image can be visualised by showing the spectrum of the images component frequencies ImagestakenfromGonzalez&Woods,DigitalImageProcessing(2002) DFT
  • 7. 7 of 54 DFT & Images (cont…) ImagestakenfromGonzalez&Woods,DigitalImageProcessing(2002) DFT Scanning electron microscope image of an integrated circuit magnified ~2500 times Fourier spectrum of the image
  • 8. 8 of 54 DFT & Images (cont…) ImagestakenfromGonzalez&Woods,DigitalImageProcessing(2002)
  • 9. 9 of 54 DFT & Images (cont…) ImagestakenfromGonzalez&Woods,DigitalImageProcessing(2002)
  • 10. 10 of 54 The Inverse DFT 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 ∑∑ − = − = + = 1 0 1 0 )//(2 ),( 1 ),( M u N v NvyMuxj evuF MN yxf π
  • 11. 11 of 54 The DFT and Image Processing To filter an image in the frequency domain: 1. Compute F(u,v) the DFT of the image 2. Multiply F(u,v) by a filter function H(u,v) 3. Compute the inverse DFT of the result ImagestakenfromGonzalez&Woods,DigitalImageProcessing(2002)
  • 12. 12 of 54 Some Basic Frequency Domain Filters ImagestakenfromGonzalez&Woods,DigitalImageProcessing(2002) Low Pass Filter High Pass Filter
  • 13. 13 of 54 Some Basic Frequency Domain Filters ImagestakenfromGonzalez&Woods,DigitalImageProcessing(2002)
  • 14. 14 of 54 Some Basic Frequency Domain Filters ImagestakenfromGonzalez&Woods,DigitalImageProcessing(2002)
  • 15. 15 of 54 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 Low pass filters – only pass the low frequencies, drop the high ones
  • 16. 16 of 54 Ideal Low Pass Filter Simply cut off all high frequency components that are a specified distance D0 from the origin of the transform changing the distance changes the behaviour of the filter ImagestakenfromGonzalez&Woods,DigitalImageProcessing(2002)
  • 17. 17 of 54 Ideal Low Pass Filter (cont…) The transfer function for the ideal low pass filter can be given as: where D(u,v) is given as:    > ≤ = 0 0 ),(if0 ),(if1 ),( DvuD DvuD vuH 2/122 ])2/()2/[(),( NvMuvuD −+−=
  • 18. 18 of 54 Ideal Low Pass Filter (cont…) Above we show an image, it’s Fourier spectrum and a series of ideal low pass filters of radius 5, 15, 30, 80 and 230 superimposed on top of it ImagestakenfromGonzalez&Woods,DigitalImageProcessing(2002)
  • 19. 19 of 54 Ideal Low Pass Filter (cont…) ImagestakenfromGonzalez&Woods,DigitalImageProcessing(2002)
  • 20. 20 of 54 Ideal Low Pass Filter (cont…) ImagestakenfromGonzalez&Woods,DigitalImageProcessing(2002)
  • 21. 21 of 54 Ideal Low Pass Filter (cont…) ImagestakenfromGonzalez&Woods,DigitalImageProcessing(2002) Original image Result of filtering with ideal low pass filter of radius 5 Result of filtering with ideal low pass filter of radius 30 Result of filtering with ideal low pass filter of radius 230 Result of filtering with ideal low pass filter of radius 80 Result of filtering with ideal low pass filter of radius 15
  • 22. 22 of 54 Ideal Low Pass Filter (cont…) ImagestakenfromGonzalez&Woods,DigitalImageProcessing(2002) Result of filtering with ideal low pass filter of radius 5
  • 23. 23 of 54 Ideal Low Pass Filter (cont…) ImagestakenfromGonzalez&Woods,DigitalImageProcessing(2002) Result of filtering with ideal low pass filter of radius 15
  • 24. 24 of 54 Butterworth Lowpass Filters The transfer function of a Butterworth lowpass filter of order n with cutoff frequency at distance D0 from the origin is defined as: ImagestakenfromGonzalez&Woods,DigitalImageProcessing(2002) n DvuD vuH 2 0 ]/),([1 1 ),( + =
  • 25. 25 of 54 Butterworth Lowpass Filter (cont…) ImagestakenfromGonzalez&Woods,DigitalImageProcessing(2002) Original image Result of filtering with Butterworth filter of order 2 and cutoff radius 5 Result of filtering with Butterworth filter of order 2 and cutoff radius 30 Result of filtering with Butterworth filter of order 2 and cutoff radius 230 Result of filtering with Butterworth filter of order 2 and cutoff radius 80 Result of filtering with Butterworth filter of order 2 and cutoff radius 15
  • 26. 26 of 54 Butterworth Lowpass Filter (cont…) ImagestakenfromGonzalez&Woods,DigitalImageProcessing(2002) Original image Result of filtering with Butterworth filter of order 2 and cutoff radius 5
  • 27. 27 of 54 Butterworth Lowpass Filter (cont…) ImagestakenfromGonzalez&Woods,DigitalImageProcessing(2002) Result of filtering with Butterworth filter of order 2 and cutoff radius 15
  • 28. 28 of 54 Gaussian Lowpass Filters The transfer function of a Gaussian lowpass filter is defined as: ImagestakenfromGonzalez&Woods,DigitalImageProcessing(2002) 2 0 2 2/),( ),( DvuD evuH − =
  • 29. 29 of 54 Gaussian Lowpass Filters (cont…) ImagestakenfromGonzalez&Woods,DigitalImageProcessing(2002) Original image Result of filtering with Gaussian filter with cutoff radius 5 Result of filtering with Gaussian filter with cutoff radius 30 Result of filtering with Gaussian filter with cutoff radius 230 Result of filtering with Gaussian filter with cutoff radius 85 Result of filtering with Gaussian filter with cutoff radius 15
  • 30. 30 of 54 Lowpass Filters Compared Result of filtering with ideal low pass filter of radius 15 Result of filtering with Butterworth filter of order 2 and cutoff radius 15 Result of filtering with Gaussian filter with cutoff radius 15 ImagestakenfromGonzalez&Woods,DigitalImageProcessing(2002)
  • 31. 31 of 54 Lowpass Filtering Examples A low pass Gaussian filter is used to connect broken text ImagestakenfromGonzalez&Woods,DigitalImageProcessing(2002)
  • 33. 33 of 54 Lowpass Filtering Examples (cont…) Different lowpass Gaussian filters used to remove blemishes in a photograph ImagestakenfromGonzalez&Woods,DigitalImageProcessing(2002)
  • 34. 34 of 54 Lowpass Filtering Examples (cont…) ImagestakenfromGonzalez&Woods,DigitalImageProcessing(2002)
  • 35. 35 of 54 Lowpass Filtering Examples (cont…) Original image Gaussian lowpass filter Processed image Spectrum of original image ImagestakenfromGonzalez&Woods,DigitalImageProcessing(2002)
  • 36. 36 of 54 Sharpening in the Frequency Domain 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)
  • 37. 37 of 54 Ideal High Pass Filters The ideal high pass filter is given as: where D0 is the cut off distance as before    > ≤ = 0 0 ),(if1 ),(if0 ),( DvuD DvuD vuH ImagestakenfromGonzalez&Woods,DigitalImageProcessing(2002)
  • 38. 38 of 54 Ideal High Pass Filters (cont…) Results of ideal high pass filtering with D0 = 15 Results of ideal high pass filtering with D0 = 30 Results of ideal high pass filtering with D0 = 80 ImagestakenfromGonzalez&Woods,DigitalImageProcessing(2002)
  • 39. 39 of 54 Butterworth High Pass Filters The Butterworth high pass filter is given as: where n is the order and D0 is the cut off distance as before n vuDD vuH 2 0 )],(/[1 1 ),( + = ImagestakenfromGonzalez&Woods,DigitalImageProcessing(2002)
  • 40. 40 of 54 Butterworth High Pass Filters (cont…) Results of Butterworth high pass filtering of order 2 with D0 = 15 Results of Butterworth high pass filtering of order 2 with D0 = 80 Results of Butterworth high pass filtering of order 2 with D0 = 30 ImagestakenfromGonzalez&Woods,DigitalImageProcessing(2002)
  • 41. 41 of 54 Gaussian High Pass Filters The Gaussian high pass filter is given as: where D0 is the cut off distance as before 2 0 2 2/),( 1),( DvuD evuH − −= ImagestakenfromGonzalez&Woods,DigitalImageProcessing(2002)
  • 42. 42 of 54 Gaussian High Pass Filters (cont…) Results of Gaussian high pass filtering with D0 = 15 Results of Gaussian high pass filtering with D0 = 80 Results of Gaussian high pass filtering with D0 = 30 ImagestakenfromGonzalez&Woods,DigitalImageProcessing(2002)
  • 43. 43 of 54 Highpass Filter Comparison Results of ideal high pass filtering with D0 = 15 ImagestakenfromGonzalez&Woods,DigitalImageProcessing(2002)
  • 44. 44 of 54 Highpass Filter Comparison Results of Butterworth high pass filtering of order 2 with D0 = 15 ImagestakenfromGonzalez&Woods,DigitalImageProcessing(2002)
  • 45. 45 of 54 Highpass Filter Comparison Results of Gaussian high pass filtering with D0 = 15 ImagestakenfromGonzalez&Woods,DigitalImageProcessing(2002)
  • 46. 46 of 54 Highpass Filter Comparison Results of ideal high pass filtering with D0 = 15 Results of Gaussian high pass filtering with D0 = 15 Results of Butterworth high pass filtering of order 2 with D0 = 15 ImagestakenfromGonzalez&Woods,DigitalImageProcessing(2002)
  • 47. 47 of 54 Highpass Filter Comparison Results of ideal high pass filtering with D0 = 15 ImagestakenfromGonzalez&Woods,DigitalImageProcessing(2002)
  • 48. 48 of 54 Highpass Filter Comparison Results of Butterworth high pass filtering of order 2 with D0 = 15 ImagestakenfromGonzalez&Woods,DigitalImageProcessing(2002)
  • 49. 49 of 54 Highpass Filter Comparison Results of Gaussian high pass filtering with D0 = 15 ImagestakenfromGonzalez&Woods,DigitalImageProcessing(2002)
  • 55. 55 of 54 Laplacian In The Frequency DomainLaplacianinthe frequencydomain 2-DimageofLaplacian inthefrequency domain InverseDFTof Laplacianinthe frequencydomain Zoomed section of the image on the left compared to spatial filter ImagestakenfromGonzalez&Woods,DigitalImageProcessing(2002)
  • 56. 56 of 54 Frequency Domain Laplacian Example Original image Laplacian filtered image Laplacian image scaled Enhanced image
  • 57. 57 of 54 Fast Fourier Transform The reason that Fourier based techniques have become so popular is the development of the Fast Fourier Transform (FFT) algorithm Allows the Fourier transform to be carried out in a reasonable amount of time Reduces the amount of time required to perform a Fourier transform by a factor of 100 – 600 times!
  • 58. 58 of 54 Frequency Domain Filtering & Spatial Domain Filtering Similar jobs can be done in the spatial and frequency domains Filtering in the spatial domain can be easier to understand Filtering in the frequency domain can be much faster – especially for large images
  • 59. 59 of 54 Summary In this lecture we examined image enhancement in the frequency domain – The Fourier series & the Fourier transform – Image Processing in the frequency domain • Image smoothing • Image sharpening – Fast Fourier Transform Next time we will begin to examine image restoration using the spatial and frequency based techniques we have been looking at
  • 60. 60 of 54 Imteresting Application Of Frequency Domain Filtering
  • 61. 61 of 54 Imteresting Application Of Frequency Domain Filtering