SlideShare a Scribd company logo
1 of 25
IMAGE SMOOTHING
USING FREQUENCY
DOMAIN FILTERS
By,
H. Suhaila Afzana
C. Surega
T. Vaitheeswari
1
CONTENTS
 Frequency Domain Filters
 Lowpass Filters
 Ideal Lowpass Filters
 Butterworth Lowpass Filters
 Gaussian Lowpass Filters
 Lowpass Filters – Comparison
 Lowpass Filtering Examples
2
FREQUENCY DOMAIN FILTERS
 Smoothing(blurring) is achieved in the frequency domain by high-
frequency attenuation; that is, by lowpass filtering.
 Here, we consider 3 types of lowpass filters:
 Ideal lowpass filters
 Butterworth lowpass filters
 Gaussian lowpass filters
 These three categories cover the range from very sharp(ideal), to
very smooth(Gaussian) filtering.
3
FREQUENCY DOMAIN FILTERS
 The Butterworth filter has a parameter called the filter order.
 For high order values, the Butterworth filter approaches the ideal
filter. For low order values, Butterworth filter is more like a Gaussian
filter.
 Thus, the Butterworth filter may be viewed as providing a transition
between two “extremes”.
4
LOWPASS FILTERS
 The most basic of filtering operations is called “lowpass”.
 A lowpass filter is also called a “blurring” or smoothing filter.
 The simplest lowpass filter just calculates the average of a pixel and
all of its eight immediate neighbours.
 Lowpass is also called as blurring mask.
5
IDEAL LOWPASS FILTERS
 A 2-D lowpass filter that passes without attenuation all frequencies
within a circle of radius D0 from the origin and “cuts off” all
frequencies outside this circle is called an ideal lowpass filter(ILPF); it
is specified by the function:






0
0
),(if0
),(if1
),(
DvuD
DvuD
vuH
6
IDEAL LOWPASS FILTERS
 D0 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,
2/122
])2/()2/[(),( QvPuvuD 
7
IDEAL LOWPASS FILTERS
 The ideal lowpass filter is radially symmetric about the origin, which
means that the filter is completely defined by a radial cross section.
 Rotating the cross section by 360° yields the filter in 2-D.
 For an ILPF cross section, the point of transition between H(u,v)=1 and
H(u,v)=0 is called the cutoff frequency D0.
 Simply cut off all high frequency components that are at a specified
distance D0 from the origin of the transform, changing the distance
changes the behaviour of the filter.
8
IDEAL LOWPASS FILTERS
A)Perspective plot of an ideal lowpass filter transfer function
B)Filter displayed as an image
C)Filter radius cross section
9
IDEAL LOWPASS FILTERS
 When the lowpass filter is applied ringing occurs in the image.
 The narrower the filter in the frequency domain, the more severe
are the blurring and ringing.
 The more ringing in the image, the more blurring of the image.
10
IDEAL LOWPASS FILTERS
 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.
11
IDEAL LOWPASS FILTERS
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
12
BUTTERWORTH LOWPASS
FILTERS
 The Butterworth lowpass filter is a type of signal processing filter
designed to have as flat a frequency response as possible in the
passband.
 It is also referred to as a maximally flat magnitude filter.
 It was first described in 1930 by the British Engineer and physicist
Stephen Butterworth.
13
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:
n
DvuD
vuH 2
0 ]/),([1
1
),(


14
BUTTERWORTH LOWPASS
FILTERS
A)Perspective plot of an Butterworth lowpass filter transfer function
B)Filter displayed as an image
C)Filter radius cross section of orders 1 through 4
15
BUTTERWORTH LOWPASS
FILTERS
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
16
BUTTERWORTH LOWPASS
FILTERS
17
GAUSSIAN LOWPASS FILTERS
 The transfer function of a Gaussian lowpass filter is defined as:
 Here, is the standard deviation and is a measure of spread of the
Gaussian curve.
 If we put =D0 we get,
22
2/),(
),( vuD
evuH 

2
0
2
2/),(
),( DvuD
evuH 

18
GAUSSIAN LOWPASS FILTERS
A)Perspective plot of a GLPF transfer function
B)Filter displayed as an image
C)Filter radius cross section for various values of D0
19
GAUSSIAN LOWPASS FILTERS
 Main advantage of a Gaussian LPF over a Butterworth LPF is that
we are assured that there will be no ringing effects no matter what
filter order we choose to work with.
20
GAUSSIAN LOWPASS FILTERS
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
21
LOWPASS FILTERS-COMPARISON
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
22
LOWPASS FILTERING EXAMPLES
 A low pass Gaussian filter is used to connect broken text
23
LOWPASS FILTERING EXAMPLES
 Different lowpass Gaussian filters used to remove blemishes in a
photograph 24
25

More Related Content

What's hot

What's hot (20)

Image Filtering in the Frequency Domain
Image Filtering in the Frequency DomainImage Filtering in the Frequency Domain
Image Filtering in the Frequency Domain
 
Smoothing Filters in Spatial Domain
Smoothing Filters in Spatial DomainSmoothing Filters in Spatial Domain
Smoothing Filters in Spatial Domain
 
Image compression models
Image compression modelsImage compression models
Image compression models
 
Digital image processing
Digital image processing  Digital image processing
Digital image processing
 
Chapter 5 Image Processing: Fourier Transformation
Chapter 5 Image Processing: Fourier TransformationChapter 5 Image Processing: Fourier Transformation
Chapter 5 Image Processing: Fourier Transformation
 
Histogram processing
Histogram processingHistogram processing
Histogram processing
 
Image Restoration (Digital Image Processing)
Image Restoration (Digital Image Processing)Image Restoration (Digital Image Processing)
Image Restoration (Digital Image Processing)
 
Digital Image Processing: Image Segmentation
Digital Image Processing: Image SegmentationDigital Image Processing: Image Segmentation
Digital Image Processing: Image Segmentation
 
Spatial operation.ppt
Spatial operation.pptSpatial operation.ppt
Spatial operation.ppt
 
Image degradation and noise by Md.Naseem Ashraf
Image degradation and noise by Md.Naseem AshrafImage degradation and noise by Md.Naseem Ashraf
Image degradation and noise by Md.Naseem Ashraf
 
Histogram Processing
Histogram ProcessingHistogram Processing
Histogram Processing
 
Image segmentation
Image segmentation Image segmentation
Image segmentation
 
Color Image Processing: Basics
Color Image Processing: BasicsColor Image Processing: Basics
Color Image Processing: Basics
 
Smoothing in Digital Image Processing
Smoothing in Digital Image ProcessingSmoothing in Digital Image Processing
Smoothing in Digital Image Processing
 
digital image processing
digital image processingdigital image processing
digital image processing
 
Edge linking in image processing
Edge linking in image processingEdge linking in image processing
Edge linking in image processing
 
Region based segmentation
Region based segmentationRegion based segmentation
Region based segmentation
 
Image Acquisition and Representation
Image Acquisition and RepresentationImage Acquisition and Representation
Image Acquisition and Representation
 
Digital Image Processing
Digital Image ProcessingDigital Image Processing
Digital Image Processing
 
SPATIAL FILTERING IN IMAGE PROCESSING
SPATIAL FILTERING IN IMAGE PROCESSINGSPATIAL FILTERING IN IMAGE PROCESSING
SPATIAL FILTERING IN IMAGE PROCESSING
 

Similar to Image Smoothing using Frequency Domain Filters

Active filters & Low Pass Filters (LMS).ppt
Active filters & Low Pass Filters (LMS).pptActive filters & Low Pass Filters (LMS).ppt
Active filters & Low Pass Filters (LMS).ppt
AdnanZafar83
 
vibration signal filtering
vibration signal filteringvibration signal filtering
vibration signal filtering
ernest8397
 
5. An analog filer has system fnction Ha(s)--a (a) (10 pts,) Comvert .pdf
5. An analog filer has system fnction Ha(s)--a (a) (10 pts,) Comvert .pdf5. An analog filer has system fnction Ha(s)--a (a) (10 pts,) Comvert .pdf
5. An analog filer has system fnction Ha(s)--a (a) (10 pts,) Comvert .pdf
info324235
 
Ayesha low pass filter
Ayesha low pass filterAyesha low pass filter
Ayesha low pass filter
Ayesha Saeed
 
600193789-Unit-6-Filters-Att.pptxattunators
600193789-Unit-6-Filters-Att.pptxattunators600193789-Unit-6-Filters-Att.pptxattunators
600193789-Unit-6-Filters-Att.pptxattunators
kiran93845
 

Similar to Image Smoothing using Frequency Domain Filters (20)

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
 
Filters
FiltersFilters
Filters
 
Active filters & Low Pass Filters (LMS).ppt
Active filters & Low Pass Filters (LMS).pptActive filters & Low Pass Filters (LMS).ppt
Active filters & Low Pass Filters (LMS).ppt
 
Vibration signal filtering
Vibration signal filtering Vibration signal filtering
Vibration signal filtering
 
unit-5 2nd part active filters by ACEIT.ppt
unit-5 2nd part active filters by ACEIT.pptunit-5 2nd part active filters by ACEIT.ppt
unit-5 2nd part active filters by ACEIT.ppt
 
Active filters
Active filtersActive filters
Active filters
 
Applications of RLC Circuits
Applications of RLC CircuitsApplications of RLC Circuits
Applications of RLC Circuits
 
Active filter
Active filterActive filter
Active filter
 
08 frequency domain filtering DIP
08 frequency domain filtering DIP08 frequency domain filtering DIP
08 frequency domain filtering DIP
 
vibration signal filtering
vibration signal filteringvibration signal filtering
vibration signal filtering
 
LICA-
LICA- LICA-
LICA-
 
5. An analog filer has system fnction Ha(s)--a (a) (10 pts,) Comvert .pdf
5. An analog filer has system fnction Ha(s)--a (a) (10 pts,) Comvert .pdf5. An analog filer has system fnction Ha(s)--a (a) (10 pts,) Comvert .pdf
5. An analog filer has system fnction Ha(s)--a (a) (10 pts,) Comvert .pdf
 
Ayesha low pass filter
Ayesha low pass filterAyesha low pass filter
Ayesha low pass filter
 
ACTIVE_FILTERS.pptx
ACTIVE_FILTERS.pptxACTIVE_FILTERS.pptx
ACTIVE_FILTERS.pptx
 
Pagara
PagaraPagara
Pagara
 
600193789-Unit-6-Filters-Att.pptxattunators
600193789-Unit-6-Filters-Att.pptxattunators600193789-Unit-6-Filters-Att.pptxattunators
600193789-Unit-6-Filters-Att.pptxattunators
 
Comm8(exp.3)
Comm8(exp.3)Comm8(exp.3)
Comm8(exp.3)
 
Passive electrical filters
Passive electrical filtersPassive electrical filters
Passive electrical filters
 
Pula
PulaPula
Pula
 
Filters 2
Filters 2Filters 2
Filters 2
 

Recently uploaded

Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please Practise
AnaAcapella
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
heathfieldcps1
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
QucHHunhnh
 

Recently uploaded (20)

Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please Practise
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxSKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptx
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
Asian American Pacific Islander Month DDSD 2024.pptx
Asian American Pacific Islander Month DDSD 2024.pptxAsian American Pacific Islander Month DDSD 2024.pptx
Asian American Pacific Islander Month DDSD 2024.pptx
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 

Image Smoothing using Frequency Domain Filters

  • 1. IMAGE SMOOTHING USING FREQUENCY DOMAIN FILTERS By, H. Suhaila Afzana C. Surega T. Vaitheeswari 1
  • 2. CONTENTS  Frequency Domain Filters  Lowpass Filters  Ideal Lowpass Filters  Butterworth Lowpass Filters  Gaussian Lowpass Filters  Lowpass Filters – Comparison  Lowpass Filtering Examples 2
  • 3. FREQUENCY DOMAIN FILTERS  Smoothing(blurring) is achieved in the frequency domain by high- frequency attenuation; that is, by lowpass filtering.  Here, we consider 3 types of lowpass filters:  Ideal lowpass filters  Butterworth lowpass filters  Gaussian lowpass filters  These three categories cover the range from very sharp(ideal), to very smooth(Gaussian) filtering. 3
  • 4. FREQUENCY DOMAIN FILTERS  The Butterworth filter has a parameter called the filter order.  For high order values, the Butterworth filter approaches the ideal filter. For low order values, Butterworth filter is more like a Gaussian filter.  Thus, the Butterworth filter may be viewed as providing a transition between two “extremes”. 4
  • 5. LOWPASS FILTERS  The most basic of filtering operations is called “lowpass”.  A lowpass filter is also called a “blurring” or smoothing filter.  The simplest lowpass filter just calculates the average of a pixel and all of its eight immediate neighbours.  Lowpass is also called as blurring mask. 5
  • 6. IDEAL LOWPASS FILTERS  A 2-D lowpass filter that passes without attenuation all frequencies within a circle of radius D0 from the origin and “cuts off” all frequencies outside this circle is called an ideal lowpass filter(ILPF); it is specified by the function:       0 0 ),(if0 ),(if1 ),( DvuD DvuD vuH 6
  • 7. IDEAL LOWPASS FILTERS  D0 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, 2/122 ])2/()2/[(),( QvPuvuD  7
  • 8. IDEAL LOWPASS FILTERS  The ideal lowpass filter is radially symmetric about the origin, which means that the filter is completely defined by a radial cross section.  Rotating the cross section by 360° yields the filter in 2-D.  For an ILPF cross section, the point of transition between H(u,v)=1 and H(u,v)=0 is called the cutoff frequency D0.  Simply cut off all high frequency components that are at a specified distance D0 from the origin of the transform, changing the distance changes the behaviour of the filter. 8
  • 9. IDEAL LOWPASS FILTERS A)Perspective plot of an ideal lowpass filter transfer function B)Filter displayed as an image C)Filter radius cross section 9
  • 10. IDEAL LOWPASS FILTERS  When the lowpass filter is applied ringing occurs in the image.  The narrower the filter in the frequency domain, the more severe are the blurring and ringing.  The more ringing in the image, the more blurring of the image. 10
  • 11. IDEAL LOWPASS FILTERS  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. 11
  • 12. IDEAL LOWPASS FILTERS 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 12
  • 13. BUTTERWORTH LOWPASS FILTERS  The Butterworth lowpass filter is a type of signal processing filter designed to have as flat a frequency response as possible in the passband.  It is also referred to as a maximally flat magnitude filter.  It was first described in 1930 by the British Engineer and physicist Stephen Butterworth. 13
  • 14. 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: n DvuD vuH 2 0 ]/),([1 1 ),(   14
  • 15. BUTTERWORTH LOWPASS FILTERS A)Perspective plot of an Butterworth lowpass filter transfer function B)Filter displayed as an image C)Filter radius cross section of orders 1 through 4 15
  • 16. BUTTERWORTH LOWPASS FILTERS 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 16
  • 18. GAUSSIAN LOWPASS FILTERS  The transfer function of a Gaussian lowpass filter is defined as:  Here, is the standard deviation and is a measure of spread of the Gaussian curve.  If we put =D0 we get, 22 2/),( ),( vuD evuH   2 0 2 2/),( ),( DvuD evuH   18
  • 19. GAUSSIAN LOWPASS FILTERS A)Perspective plot of a GLPF transfer function B)Filter displayed as an image C)Filter radius cross section for various values of D0 19
  • 20. GAUSSIAN LOWPASS FILTERS  Main advantage of a Gaussian LPF over a Butterworth LPF is that we are assured that there will be no ringing effects no matter what filter order we choose to work with. 20
  • 21. GAUSSIAN LOWPASS FILTERS 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 21
  • 22. LOWPASS FILTERS-COMPARISON 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 22
  • 23. LOWPASS FILTERING EXAMPLES  A low pass Gaussian filter is used to connect broken text 23
  • 24. LOWPASS FILTERING EXAMPLES  Different lowpass Gaussian filters used to remove blemishes in a photograph 24
  • 25. 25