SlideShare ist ein Scribd-Unternehmen logo
1 von 51
DIGITAL IMAGE PROCESSING
IMAGE FILTERING
B.ABINAYA BHARATHI M.Sc (Cs&IT) ,
NADAR SARASWATHI COLLEGE OF ARTS AND
SCIENCE ,
THENI.
1
INTRODUCTION TO DIP
2
FILTERING
 Filtering is a technique used for modifying or enhancing an
image like highlight certain features or remove other features.
 Image filtering include smoothing, sharpening, and edge
enhancement
 Term ‘convolution ‘ means applying filters to an image .
 It may be applied in either
 spatial domain
 frequency domain.
3
SPATIAL DOMAIN FILTERS
4
MECHANISM OF SPATIAL FILTERING
This process shows
moving filter mask
point to point
Filter at each point
(x , y) are calculated
by predefined
relationship 5
LINEAR SPATIAL FILTERING
 For Linear spatial filtering,
 Result = sum of product of filter coefficient and the
corresponding image pixels
 For above figure Response R is
 w(0,0) -indicates mask is centered at x , y
R=result or response of linear filtering
1)y1,(1,1)f(x.y),(0,0)f(x..
y)1,-(-1,0)f(x1)-y1,-)f(x1,1(R


ww
ww
6
LINEAR SPATIAL FILTERING
 Linear filter of an image f of size M×N with a filter mask size
of m × n is given by the expression





a
as
b
bt
tysxftswyxg ),(),(),(
7
LINEAR SPATIAL FILTERING
 For a mask of size=m × n
 Assume that
 m=2a+1
 n=2b+1
 Where a and b are nonnegative integers
 Then m and n are odd.
8
CONVOLUTION
 The process of linear filtering is same as convolution.
 So linear spatial filtering is referred to as “convolving a mask
with an image.”
9
 When interest lies on the response, R, of an m x n mask at
any point (x , y), and not on the mechanics of implementing
mask convolution
 It is a simplified notation
i
mn
i
i
mnmn
zw
zwzwzwR



1
2211 ...
10
w1 w2 W3
w4 w5 w6
w7 w8 w9
i
i
i zwzwzwzwR 

9
1
992211 ...
For above 3 x 3 general Mask ,response at any point (x, y)
in the image is given by
11
SMOOTHING SPATIAL FILTERS
 Smoothing filters are used for blurring and for noise reduction
 Blurring is used in preprocessing steps, such as removal of
small details from an image prior to (large) object extraction,
and bridging of small gaps in lines or curves.
 Noise reduction can be accomplished by blurring with a
linear filter and also by non-linear filtering.
12
 Smoothing spatial filter is done in two ways
 Linear filters
 operation performed on a pixel
 Order statistics filter(non linear)
 based on ranking on pixel
13
SMOOTHING LINEAR FILTERS
 linear spatial filter is simply the average of the pixels
contained in the neighborhood of the filter mask.
 These filters sometimes are called averaging filter
 By replacing the value of every pixel in an image by the
average of the gray levels in the neighborhood defined by the
filter mask
 This process results in an image with reduced “sharp”
transitions in gray levels
14
 Two mask
 averaging filter
 weighted average
15
AVERAGING FILTER
 A major use of averaging filters is in the reduction of
“Irrelevant” detail in an image
 A spatial averaging filter in which all coefficients are equal is
sometimes called a box filter.
 Also known as low pass filter.
 m x n mask would have a normalizing constant equal to
1/ m n.
16
AVERAGING FILTER
1 1 1
1 1 1
1 1 1

9
1


9
1
,1
9
1
i
zR
17
AVERAGING FILTER
18
WEIGHTED AVERAGING FILTER
 Pixels are multiplied by different coefficients , the pixel at the
center of the mask is multiplied by a higher value than any
other, thus giving this pixel more importance in the
calculation of the average.
 The other pixels are inversely weighted as a function of their
distance from the center of the mask
19
WEIGHTED AVERAGE
1 2 1
2 4 2
1 2 1

16
1
20
 The general implementation for filtering an M x N image with
a weighted averaging filter of size
 m x n (m and n odd) is given by the expression
 
 
 
 

 a
as
b
bt
a
as
b
bt
tsw
ysxftsw
yxg
),(
)1,(),(
),(
21
EXAMPLE OF WEIGHTED AVERAGING
FILTER
22
ORDER STATISTICS FILTERS
 Order-statistics filters are nonlinear spatial filters whose
response is based on ordering (ranking) the pixels
 Example for this filter is median filter
23
MEDIAN FILTER
 Median filters used for noise-reduction with less blurring than
linear smoothing filters of similar size.
 Median filters are particularly effective in the presence of
impulse noise also called salt-and-pepper noise because of its
appearance as white and black dots superimposed on an
image.
24
EXAMPLE FOR MEDIAN FILTER
25
FREQUENCY DOMAIN FILTERS
26
SMOOTHING FREQUENCY DOMAIN FILTERS
 Smoothing is achieved by attenuating a specified range of
high frequency component
 The concept of filter in frequency domain is same as the
concept of a mask in convolution.
G(u , v)=H(u , v)F(u , v)
27
SMOOTHING FREQUENCY DOMAIN FILTERS
 After converting an image to frequency domain, some filters
are applied in filtering process to perform different kind of
processing on an image. The processing include blurring an
image, sharpening an image etc,.
 The three type of filters for these purposes are:
 Ideal low pass filter
 Butterworth low pass filter
 Gaussian low pass filter
28
IDEAL LOW PASS FILTER
 Low-pass filtering smooth a signal or image .
 ideal low pass filter (ILPF) is one whose transfer function
satisfies the relation
 For cutoff frequency
H(u , v)= 1 if D(u , v) <
0 if D(u , v) >
0D
0D
29
 D is a specified nonnegative quantity, and D(u, v) is the
distance from point (u, v) in the frequency domain and the
center of frequency rectangle
  2
1
22
)2()2(),( NvMuvuD 
30
VISUALIZATION
Perspective plot of an ILPL
Transfer function
Filter displayed as an image
Filter radical cross section 31
 The low pass filters are radially symmetric about the origin
 The complete filter transfer function can then be generated by
rotating the cross section 360 about the origin
 For an ideal low pass filter cross section, the point of
transition between H(u, v) = 1 and H(u, v) = 0 is often called
the cutoff frequency
 The sharp cutoff frequencies of an ideal low pass filter cannot
be realized with electronic components , although they can
certainly be simulated in a computer.
32
33
APPLYING ILPF TO A IMAGE IN DIFFERENT
FREQUENCIES
34
BUTTERWORTH FILTER
 The transfer function of the Butterworth low pass (BLPF) of
order n and with cutoff frequency locus at a distance Do, from
the origin is defined by the relation.
 BLPF transfer function does not have a sharp discontinuity
that establishes a clear cutoff between passed and filtered
frequencies
  n
DvuD
vuH 2
0/),(1
1
),(


35
BUTTERWORTH LOW PASS FILTER
Filter displayed as an image
Perspective plot of an BLPF
Transfer function
Filter radical cross section
36
APPLYING BLPF IN AN IMAGE IN
DIFFERENT FREQUENCIES
37
GAUSSIAN IMAGE FILTERING
 The form of these filters in two dimensions is given by
 D(u, v) is the distance from the origin of the Fourier
transform.
 σ is a measure of the spread of the Gaussian curve
22
2/),(
),( vuD
evuH 

38
GAUSSIAN LOW PASS FILTERS
Perspective plot of an GLPF
Transfer function
Filter radical cross section
Filter displayed as an image
39
APPLYING GLPF IN AN IMAGE IN
DIFFERENT FREQUENCIES
40
SHARPENING FREQUENCY DOMAIN
FILTERS
 Image sharpening is done by using high pass filters
 It attenuates the low frequency components without disturbing
high frequency information
 The transformation of high pass function is
 represents high pass function
 Represents low pass function
hpH
),(1),( vuHvuH lphp 
lpH 41
 Sharpening frequency domain filters include
 Ideal low pass filter
 Butterworth low pass filter
 Gaussian low pass filter
42
 Sharpening technique is reverse operation of low pass filters
 When the low pass filters attenuates frequencies , the high
pass filter passes them
 When the high pass filters attenuates frequencies , the low
pass filter passes them
43
IDEAL HIGH PASS FILTER
 It is defined as
 H(u , v)= 1 if D(u , v) <
0 if D(u , v) >
 Ideal high pass shows significant ringing artifacts
0D
0D
44
45
BUTTERWORTH HIGH PASS FILTER
 Transformation function of BHPF
 BHPF shows sharp edges with minor ringing artifacts
  n
DvuD
vuH 2
0/),(1
1
1),(


46
47
GAUSSIAN HIGH PASS FILTER
 Transformation function of GHPF
 Gaussian high pass filters shows high sharpness without
ringing artifacts.
22
2/),(
1),( vuD
evuH 

48
49
PERSPECTIVE PLOT , IMAGE REPRESENTATION
AND CROSS SECTION OF IHPF,BHPF,GHPF
50
THANK YOU
51

Weitere ähnliche Inhalte

Was ist angesagt?

Image Filtering in the Frequency Domain
Image Filtering in the Frequency DomainImage Filtering in the Frequency Domain
Image Filtering in the Frequency DomainAmnaakhaan
 
Homomorphic filtering
Homomorphic filteringHomomorphic filtering
Homomorphic filteringGautam Saxena
 
Image Enhancement in Spatial Domain
Image Enhancement in Spatial DomainImage Enhancement in Spatial Domain
Image Enhancement in Spatial DomainDEEPASHRI HK
 
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 AshrafMD Naseem Ashraf
 
Region Splitting and Merging Technique For Image segmentation.
Region Splitting and Merging Technique For Image segmentation.Region Splitting and Merging Technique For Image segmentation.
Region Splitting and Merging Technique For Image segmentation.SomitSamanto1
 
Image enhancement
Image enhancementImage enhancement
Image enhancementAyaelshiwi
 
Image enhancement ppt nal2
Image enhancement ppt nal2Image enhancement ppt nal2
Image enhancement ppt nal2Surabhi Ks
 
Color Image Processing: Basics
Color Image Processing: BasicsColor Image Processing: Basics
Color Image Processing: BasicsA B Shinde
 
Image segmentation ppt
Image segmentation pptImage segmentation ppt
Image segmentation pptGichelle Amon
 
Image processing second unit Notes
Image processing second unit NotesImage processing second unit Notes
Image processing second unit NotesAAKANKSHA JAIN
 
DIGITAL IMAGE PROCESSING - LECTURE NOTES
DIGITAL IMAGE PROCESSING - LECTURE NOTESDIGITAL IMAGE PROCESSING - LECTURE NOTES
DIGITAL IMAGE PROCESSING - LECTURE NOTESEzhilya venkat
 
Frequency Domain Image Enhancement Techniques
Frequency Domain Image Enhancement TechniquesFrequency Domain Image Enhancement Techniques
Frequency Domain Image Enhancement TechniquesDiwaker Pant
 
Sharpening using frequency Domain Filter
Sharpening using frequency Domain FilterSharpening using frequency Domain Filter
Sharpening using frequency Domain Filterarulraj121
 

Was ist angesagt? (20)

Image Filtering in the Frequency Domain
Image Filtering in the Frequency DomainImage Filtering in the Frequency Domain
Image Filtering in the Frequency Domain
 
Homomorphic filtering
Homomorphic filteringHomomorphic filtering
Homomorphic filtering
 
Sharpening spatial filters
Sharpening spatial filtersSharpening spatial filters
Sharpening spatial filters
 
Image Enhancement in Spatial Domain
Image Enhancement in Spatial DomainImage Enhancement in Spatial Domain
Image Enhancement in Spatial Domain
 
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
 
Region Splitting and Merging Technique For Image segmentation.
Region Splitting and Merging Technique For Image segmentation.Region Splitting and Merging Technique For Image segmentation.
Region Splitting and Merging Technique For Image segmentation.
 
Image enhancement
Image enhancementImage enhancement
Image enhancement
 
Image enhancement ppt nal2
Image enhancement ppt nal2Image enhancement ppt nal2
Image enhancement ppt nal2
 
image enhancement
 image enhancement image enhancement
image enhancement
 
Color Image Processing: Basics
Color Image Processing: BasicsColor Image Processing: Basics
Color Image Processing: Basics
 
Image segmentation ppt
Image segmentation pptImage segmentation ppt
Image segmentation ppt
 
Image segmentation
Image segmentation Image segmentation
Image segmentation
 
Chapter 5
Chapter 5Chapter 5
Chapter 5
 
Image processing second unit Notes
Image processing second unit NotesImage processing second unit Notes
Image processing second unit Notes
 
Digital image processing
Digital image processing  Digital image processing
Digital image processing
 
DIGITAL IMAGE PROCESSING - LECTURE NOTES
DIGITAL IMAGE PROCESSING - LECTURE NOTESDIGITAL IMAGE PROCESSING - LECTURE NOTES
DIGITAL IMAGE PROCESSING - LECTURE NOTES
 
Frequency Domain Image Enhancement Techniques
Frequency Domain Image Enhancement TechniquesFrequency Domain Image Enhancement Techniques
Frequency Domain Image Enhancement Techniques
 
Sharpening using frequency Domain Filter
Sharpening using frequency Domain FilterSharpening using frequency Domain Filter
Sharpening using frequency Domain Filter
 
Digital Image Processing
Digital Image ProcessingDigital Image Processing
Digital Image Processing
 

Ähnlich wie Image filtering in Digital image processing

06 spatial filtering DIP
06 spatial filtering DIP06 spatial filtering DIP
06 spatial filtering DIPbabak danyal
 
Spatial Domain Filtering.pdf
Spatial Domain Filtering.pdfSpatial Domain Filtering.pdf
Spatial Domain Filtering.pdfswagatkarve
 
Image Enhancement using Frequency Domain Filters
Image Enhancement using Frequency Domain FiltersImage Enhancement using Frequency Domain Filters
Image Enhancement using Frequency Domain FiltersKarthika Ramachandran
 
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
 
08 frequency domain filtering DIP
08 frequency domain filtering DIP08 frequency domain filtering DIP
08 frequency domain filtering DIPbabak danyal
 
Digital image processing - Image Enhancement (MATERIAL)
Digital image processing  - Image Enhancement (MATERIAL)Digital image processing  - Image Enhancement (MATERIAL)
Digital image processing - Image Enhancement (MATERIAL)Mathankumar S
 
Digital Image Processing - Image Enhancement
Digital Image Processing  - Image EnhancementDigital Image Processing  - Image Enhancement
Digital Image Processing - Image EnhancementMathankumar S
 
Image Smoothing using Frequency Domain Filters
Image Smoothing using Frequency Domain FiltersImage Smoothing using Frequency Domain Filters
Image Smoothing using Frequency Domain FiltersSuhaila Afzana
 
Spatial filtering
Spatial filteringSpatial filtering
Spatial filteringDeepikaT13
 
Smoothing in Digital Image Processing
Smoothing in Digital Image ProcessingSmoothing in Digital Image Processing
Smoothing in Digital Image ProcessingPallavi Agarwal
 
CSE367 Lecture- image sinal processing lecture
CSE367 Lecture- image sinal processing lectureCSE367 Lecture- image sinal processing lecture
CSE367 Lecture- image sinal processing lectureFatmaNewagy1
 
3 intensity transformations and spatial filtering slides
3 intensity transformations and spatial filtering slides3 intensity transformations and spatial filtering slides
3 intensity transformations and spatial filtering slidesBHAGYAPRASADBUGGE
 
Digital image processing
Digital image processingDigital image processing
Digital image processingABIRAMI M
 
Iisrt zzz bhavyasri vanteddu
Iisrt zzz bhavyasri vantedduIisrt zzz bhavyasri vanteddu
Iisrt zzz bhavyasri vantedduIISRT
 
Paper id 28201452
Paper id 28201452Paper id 28201452
Paper id 28201452IJRAT
 
The International Journal of Engineering and Science (The IJES)
The International Journal of Engineering and Science (The IJES)The International Journal of Engineering and Science (The IJES)
The International Journal of Engineering and Science (The IJES)theijes
 

Ähnlich wie Image filtering in Digital image processing (20)

06 spatial filtering DIP
06 spatial filtering DIP06 spatial filtering DIP
06 spatial filtering DIP
 
Spatial Domain Filtering.pdf
Spatial Domain Filtering.pdfSpatial Domain Filtering.pdf
Spatial Domain Filtering.pdf
 
Image Enhancement using Frequency Domain Filters
Image Enhancement using Frequency Domain FiltersImage Enhancement using Frequency Domain Filters
Image Enhancement using Frequency Domain Filters
 
Lecture 6
Lecture 6Lecture 6
Lecture 6
 
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
 
08 frequency domain filtering DIP
08 frequency domain filtering DIP08 frequency domain filtering DIP
08 frequency domain filtering DIP
 
M.sc. m hassan
M.sc. m hassanM.sc. m hassan
M.sc. m hassan
 
Digital image processing - Image Enhancement (MATERIAL)
Digital image processing  - Image Enhancement (MATERIAL)Digital image processing  - Image Enhancement (MATERIAL)
Digital image processing - Image Enhancement (MATERIAL)
 
Digital Image Processing - Image Enhancement
Digital Image Processing  - Image EnhancementDigital Image Processing  - Image Enhancement
Digital Image Processing - Image Enhancement
 
Image Smoothing using Frequency Domain Filters
Image Smoothing using Frequency Domain FiltersImage Smoothing using Frequency Domain Filters
Image Smoothing using Frequency Domain Filters
 
Spatial filtering
Spatial filteringSpatial filtering
Spatial filtering
 
Smoothing in Digital Image Processing
Smoothing in Digital Image ProcessingSmoothing in Digital Image Processing
Smoothing in Digital Image Processing
 
CSE367 Lecture- image sinal processing lecture
CSE367 Lecture- image sinal processing lectureCSE367 Lecture- image sinal processing lecture
CSE367 Lecture- image sinal processing lecture
 
3 intensity transformations and spatial filtering slides
3 intensity transformations and spatial filtering slides3 intensity transformations and spatial filtering slides
3 intensity transformations and spatial filtering slides
 
Lecture 4
Lecture 4Lecture 4
Lecture 4
 
Digital image processing
Digital image processingDigital image processing
Digital image processing
 
unit-3.ppt
unit-3.pptunit-3.ppt
unit-3.ppt
 
Iisrt zzz bhavyasri vanteddu
Iisrt zzz bhavyasri vantedduIisrt zzz bhavyasri vanteddu
Iisrt zzz bhavyasri vanteddu
 
Paper id 28201452
Paper id 28201452Paper id 28201452
Paper id 28201452
 
The International Journal of Engineering and Science (The IJES)
The International Journal of Engineering and Science (The IJES)The International Journal of Engineering and Science (The IJES)
The International Journal of Engineering and Science (The IJES)
 

Mehr von Abinaya B

Overview of bigdata
Overview of bigdataOverview of bigdata
Overview of bigdataAbinaya B
 
exception handling in java
exception handling in javaexception handling in java
exception handling in javaAbinaya B
 
data structures
data structuresdata structures
data structuresAbinaya B
 
graphics programming in java
graphics programming in javagraphics programming in java
graphics programming in javaAbinaya B
 
data structures- back tracking
data structures- back trackingdata structures- back tracking
data structures- back trackingAbinaya B
 
exception handling in java
exception handling in javaexception handling in java
exception handling in javaAbinaya B
 
digital image processing
digital image processingdigital image processing
digital image processingAbinaya B
 
software engineering
software engineeringsoftware engineering
software engineeringAbinaya B
 
software cost factor
software cost factorsoftware cost factor
software cost factorAbinaya B
 
Basic topic on os
Basic topic on osBasic topic on os
Basic topic on osAbinaya B
 
Digital principles basic
Digital principles basicDigital principles basic
Digital principles basicAbinaya B
 
Managing I/O & String function in C
Managing I/O & String function in CManaging I/O & String function in C
Managing I/O & String function in CAbinaya B
 
Introduction to 80386
Introduction to 80386Introduction to 80386
Introduction to 80386Abinaya B
 
Network standardization
Network standardizationNetwork standardization
Network standardizationAbinaya B
 

Mehr von Abinaya B (18)

Multimedia
MultimediaMultimedia
Multimedia
 
Overview of bigdata
Overview of bigdataOverview of bigdata
Overview of bigdata
 
exception handling in java
exception handling in javaexception handling in java
exception handling in java
 
data structures
data structuresdata structures
data structures
 
graphics programming in java
graphics programming in javagraphics programming in java
graphics programming in java
 
data structures- back tracking
data structures- back trackingdata structures- back tracking
data structures- back tracking
 
exception handling in java
exception handling in javaexception handling in java
exception handling in java
 
digital image processing
digital image processingdigital image processing
digital image processing
 
software engineering
software engineeringsoftware engineering
software engineering
 
software cost factor
software cost factorsoftware cost factor
software cost factor
 
Data Mining
Data MiningData Mining
Data Mining
 
Datamining
DataminingDatamining
Datamining
 
Basic topic on os
Basic topic on osBasic topic on os
Basic topic on os
 
Digital principles basic
Digital principles basicDigital principles basic
Digital principles basic
 
Rdbms1
Rdbms1Rdbms1
Rdbms1
 
Managing I/O & String function in C
Managing I/O & String function in CManaging I/O & String function in C
Managing I/O & String function in C
 
Introduction to 80386
Introduction to 80386Introduction to 80386
Introduction to 80386
 
Network standardization
Network standardizationNetwork standardization
Network standardization
 

Kürzlich hochgeladen

Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...apidays
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobeapidays
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businesspanagenda
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century educationjfdjdjcjdnsjd
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processorsdebabhi2
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxRustici Software
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoffsammart93
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc
 
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...apidays
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsNanddeep Nachan
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Drew Madelung
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDropbox
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native ApplicationsWSO2
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Scriptwesley chun
 
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Zilliz
 
Ransomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdfRansomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdfOverkill Security
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherRemote DBA Services
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CVKhem
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MIND CTI
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonAnna Loughnan Colquhoun
 

Kürzlich hochgeladen (20)

Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectors
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
 
Ransomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdfRansomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdf
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 

Image filtering in Digital image processing

  • 1. DIGITAL IMAGE PROCESSING IMAGE FILTERING B.ABINAYA BHARATHI M.Sc (Cs&IT) , NADAR SARASWATHI COLLEGE OF ARTS AND SCIENCE , THENI. 1
  • 3. FILTERING  Filtering is a technique used for modifying or enhancing an image like highlight certain features or remove other features.  Image filtering include smoothing, sharpening, and edge enhancement  Term ‘convolution ‘ means applying filters to an image .  It may be applied in either  spatial domain  frequency domain. 3
  • 5. MECHANISM OF SPATIAL FILTERING This process shows moving filter mask point to point Filter at each point (x , y) are calculated by predefined relationship 5
  • 6. LINEAR SPATIAL FILTERING  For Linear spatial filtering,  Result = sum of product of filter coefficient and the corresponding image pixels  For above figure Response R is  w(0,0) -indicates mask is centered at x , y R=result or response of linear filtering 1)y1,(1,1)f(x.y),(0,0)f(x.. y)1,-(-1,0)f(x1)-y1,-)f(x1,1(R   ww ww 6
  • 7. LINEAR SPATIAL FILTERING  Linear filter of an image f of size M×N with a filter mask size of m × n is given by the expression      a as b bt tysxftswyxg ),(),(),( 7
  • 8. LINEAR SPATIAL FILTERING  For a mask of size=m × n  Assume that  m=2a+1  n=2b+1  Where a and b are nonnegative integers  Then m and n are odd. 8
  • 9. CONVOLUTION  The process of linear filtering is same as convolution.  So linear spatial filtering is referred to as “convolving a mask with an image.” 9
  • 10.  When interest lies on the response, R, of an m x n mask at any point (x , y), and not on the mechanics of implementing mask convolution  It is a simplified notation i mn i i mnmn zw zwzwzwR    1 2211 ... 10
  • 11. w1 w2 W3 w4 w5 w6 w7 w8 w9 i i i zwzwzwzwR   9 1 992211 ... For above 3 x 3 general Mask ,response at any point (x, y) in the image is given by 11
  • 12. SMOOTHING SPATIAL FILTERS  Smoothing filters are used for blurring and for noise reduction  Blurring is used in preprocessing steps, such as removal of small details from an image prior to (large) object extraction, and bridging of small gaps in lines or curves.  Noise reduction can be accomplished by blurring with a linear filter and also by non-linear filtering. 12
  • 13.  Smoothing spatial filter is done in two ways  Linear filters  operation performed on a pixel  Order statistics filter(non linear)  based on ranking on pixel 13
  • 14. SMOOTHING LINEAR FILTERS  linear spatial filter is simply the average of the pixels contained in the neighborhood of the filter mask.  These filters sometimes are called averaging filter  By replacing the value of every pixel in an image by the average of the gray levels in the neighborhood defined by the filter mask  This process results in an image with reduced “sharp” transitions in gray levels 14
  • 15.  Two mask  averaging filter  weighted average 15
  • 16. AVERAGING FILTER  A major use of averaging filters is in the reduction of “Irrelevant” detail in an image  A spatial averaging filter in which all coefficients are equal is sometimes called a box filter.  Also known as low pass filter.  m x n mask would have a normalizing constant equal to 1/ m n. 16
  • 17. AVERAGING FILTER 1 1 1 1 1 1 1 1 1  9 1   9 1 ,1 9 1 i zR 17
  • 19. WEIGHTED AVERAGING FILTER  Pixels are multiplied by different coefficients , the pixel at the center of the mask is multiplied by a higher value than any other, thus giving this pixel more importance in the calculation of the average.  The other pixels are inversely weighted as a function of their distance from the center of the mask 19
  • 20. WEIGHTED AVERAGE 1 2 1 2 4 2 1 2 1  16 1 20
  • 21.  The general implementation for filtering an M x N image with a weighted averaging filter of size  m x n (m and n odd) is given by the expression           a as b bt a as b bt tsw ysxftsw yxg ),( )1,(),( ),( 21
  • 22. EXAMPLE OF WEIGHTED AVERAGING FILTER 22
  • 23. ORDER STATISTICS FILTERS  Order-statistics filters are nonlinear spatial filters whose response is based on ordering (ranking) the pixels  Example for this filter is median filter 23
  • 24. MEDIAN FILTER  Median filters used for noise-reduction with less blurring than linear smoothing filters of similar size.  Median filters are particularly effective in the presence of impulse noise also called salt-and-pepper noise because of its appearance as white and black dots superimposed on an image. 24
  • 25. EXAMPLE FOR MEDIAN FILTER 25
  • 27. SMOOTHING FREQUENCY DOMAIN FILTERS  Smoothing is achieved by attenuating a specified range of high frequency component  The concept of filter in frequency domain is same as the concept of a mask in convolution. G(u , v)=H(u , v)F(u , v) 27
  • 28. SMOOTHING FREQUENCY DOMAIN FILTERS  After converting an image to frequency domain, some filters are applied in filtering process to perform different kind of processing on an image. The processing include blurring an image, sharpening an image etc,.  The three type of filters for these purposes are:  Ideal low pass filter  Butterworth low pass filter  Gaussian low pass filter 28
  • 29. IDEAL LOW PASS FILTER  Low-pass filtering smooth a signal or image .  ideal low pass filter (ILPF) is one whose transfer function satisfies the relation  For cutoff frequency H(u , v)= 1 if D(u , v) < 0 if D(u , v) > 0D 0D 29
  • 30.  D is a specified nonnegative quantity, and D(u, v) is the distance from point (u, v) in the frequency domain and the center of frequency rectangle   2 1 22 )2()2(),( NvMuvuD  30
  • 31. VISUALIZATION Perspective plot of an ILPL Transfer function Filter displayed as an image Filter radical cross section 31
  • 32.  The low pass filters are radially symmetric about the origin  The complete filter transfer function can then be generated by rotating the cross section 360 about the origin  For an ideal low pass filter cross section, the point of transition between H(u, v) = 1 and H(u, v) = 0 is often called the cutoff frequency  The sharp cutoff frequencies of an ideal low pass filter cannot be realized with electronic components , although they can certainly be simulated in a computer. 32
  • 33. 33
  • 34. APPLYING ILPF TO A IMAGE IN DIFFERENT FREQUENCIES 34
  • 35. BUTTERWORTH FILTER  The transfer function of the Butterworth low pass (BLPF) of order n and with cutoff frequency locus at a distance Do, from the origin is defined by the relation.  BLPF transfer function does not have a sharp discontinuity that establishes a clear cutoff between passed and filtered frequencies   n DvuD vuH 2 0/),(1 1 ),(   35
  • 36. BUTTERWORTH LOW PASS FILTER Filter displayed as an image Perspective plot of an BLPF Transfer function Filter radical cross section 36
  • 37. APPLYING BLPF IN AN IMAGE IN DIFFERENT FREQUENCIES 37
  • 38. GAUSSIAN IMAGE FILTERING  The form of these filters in two dimensions is given by  D(u, v) is the distance from the origin of the Fourier transform.  σ is a measure of the spread of the Gaussian curve 22 2/),( ),( vuD evuH   38
  • 39. GAUSSIAN LOW PASS FILTERS Perspective plot of an GLPF Transfer function Filter radical cross section Filter displayed as an image 39
  • 40. APPLYING GLPF IN AN IMAGE IN DIFFERENT FREQUENCIES 40
  • 41. SHARPENING FREQUENCY DOMAIN FILTERS  Image sharpening is done by using high pass filters  It attenuates the low frequency components without disturbing high frequency information  The transformation of high pass function is  represents high pass function  Represents low pass function hpH ),(1),( vuHvuH lphp  lpH 41
  • 42.  Sharpening frequency domain filters include  Ideal low pass filter  Butterworth low pass filter  Gaussian low pass filter 42
  • 43.  Sharpening technique is reverse operation of low pass filters  When the low pass filters attenuates frequencies , the high pass filter passes them  When the high pass filters attenuates frequencies , the low pass filter passes them 43
  • 44. IDEAL HIGH PASS FILTER  It is defined as  H(u , v)= 1 if D(u , v) < 0 if D(u , v) >  Ideal high pass shows significant ringing artifacts 0D 0D 44
  • 45. 45
  • 46. BUTTERWORTH HIGH PASS FILTER  Transformation function of BHPF  BHPF shows sharp edges with minor ringing artifacts   n DvuD vuH 2 0/),(1 1 1),(   46
  • 47. 47
  • 48. GAUSSIAN HIGH PASS FILTER  Transformation function of GHPF  Gaussian high pass filters shows high sharpness without ringing artifacts. 22 2/),( 1),( vuD evuH   48
  • 49. 49
  • 50. PERSPECTIVE PLOT , IMAGE REPRESENTATION AND CROSS SECTION OF IHPF,BHPF,GHPF 50