SlideShare une entreprise Scribd logo
1  sur  47
Frequency Domain Filtering : 1
Frequency DomainFrequency Domain
FilteringFiltering
Frequency Domain Filtering : 2
Blurring/Noise reductionBlurring/Noise reduction
Noise characterized by sharp transitions in image intensity
Such transitions contribute significantly to high frequency
components of Fourier transform
Intuitively, attenuating certain high frequency components result in
blurring and reduction of image noise
Frequency Domain Filtering : 3
Ideal Low-pass FilterIdeal Low-pass Filter
Cuts off all high-frequency components at a distance greater than a
certain distance from origin (cutoff frequency)
0
0
1, if ( , )
( , )
0, if ( , )
D u v D
H u v
D u v D
≤
= 
>
Frequency Domain Filtering : 4
VisualizationVisualization
Frequency Domain Filtering : 5
Effect of Different CutoffEffect of Different Cutoff
FrequenciesFrequencies
Frequency Domain Filtering : 6
Effect of Different CutoffEffect of Different Cutoff
FrequenciesFrequencies
Frequency Domain Filtering : 7
Effect of Different CutoffEffect of Different Cutoff
FrequenciesFrequencies
As cutoff frequency decreases
Image becomes more blurred
Noise becomes reduced
Analogous to larger spatial filter sizes
Noticeable ringing artifacts that increase as the amount of high
frequency components removed is increased
Frequency Domain Filtering : 8
Why is there ringing?Why is there ringing?
Ideal low-pass filter function is a rectangular function
The inverse Fourier transform of a rectangular function is a sinc
function
Frequency Domain Filtering : 9
RingingRinging
Frequency Domain Filtering : 10
Butterworth Low-pass FilterButterworth Low-pass Filter
Transfer function does not have sharp discontinuity establishing
cutoff between passed and filtered frequencies
Cutoff frequency D0 defines point at which H(u,v)=0.5
[ ]
2
0
1
( , )
1 ( , ) /
n
H u v
D u v D
=
+
Frequency Domain Filtering : 11
Butterworth Low-pass FilterButterworth Low-pass Filter
Frequency Domain Filtering : 12
Spatial RepresentationsSpatial Representations
Tradeoff between amount of smoothing and ringing
Frequency Domain Filtering : 13
Butterworth Low-pass Filters of DifferentButterworth Low-pass Filters of Different
FrequenciesFrequencies
Frequency Domain Filtering : 14
Gaussian Low-pass FilterGaussian Low-pass Filter
Transfer function is smooth, like Butterworth filter
Gaussian in frequency domain remains a Gaussian in spatial
domain
Advantage: No ringing artifacts
2 2
0( , )/2
( , ) D u v D
H u v e−
=
Frequency Domain Filtering : 15
Gaussian Low-pass FilterGaussian Low-pass Filter
Frequency Domain Filtering : 16
Gaussian Low-pass FilterGaussian Low-pass Filter
Frequency Domain Filtering : 17
Low-pass Filtering: ExampleLow-pass Filtering: Example
Frequency Domain Filtering : 18
Low-pass Filtering: ExampleLow-pass Filtering: Example
Frequency Domain Filtering : 19
Periodic Noise ReductionPeriodic Noise Reduction
Typically occurs from electrical or electromechanical interference
during image acquisition
Spatially dependent noise
Example: spatial sinusoidal noise
Frequency Domain Filtering : 20
ExampleExample
Frequency Domain Filtering : 21
ObservationsObservations
Symmetric pairs of bright spots appear in the Fourier spectra
Why?
Fourier transform of sine function is the sum of a pair of
impulse functions
Intuitively, sinusoidal noise can be reduced by attenuating these
bright spots
[ ]0 0 0
1
sin(2 ) ( ) ( )
2
k x j k k k kπ δ δ⇔ + − −
Frequency Domain Filtering : 22
Bandreject FiltersBandreject Filters
Removes or attenuates a band of frequencies about the origin of
the Fourier transform
Sinusoidal noise may be reduced by filtering the band of
frequencies upon which the bright spots associated with period
noise appear
Frequency Domain Filtering : 23
Example: Ideal Bandreject FiltersExample: Ideal Bandreject Filters
0
0 0
0
1, if ( , )
2
( , ) 0, if ( , )
2 2
1, if ( , )
2
W
D u v D
W W
H u v D D u v D
W
D u v D

< −


= − ≤ < +


> +

Frequency Domain Filtering : 24
ExampleExample
Frequency Domain Filtering : 25
Notchreject FiltersNotchreject Filters
Idea:
Sinusoidal noise appears as bright spots in Fourier spectra
Reject frequencies in predefined neighborhoods about a
center frequency
In this case, center notchreject filters around frequencies
coinciding with the bright spots
Frequency Domain Filtering : 26
Some Notchreject FiltersSome Notchreject Filters
Frequency Domain Filtering : 27
ExampleExample
Frequency Domain Filtering : 28
SharpeningSharpening
Edges and fine detail characterized by sharp transitions in
image intensity
Such transitions contribute significantly to high frequency
components of Fourier transform
Intuitively, attenuating certain low frequency components and
preserving high frequency components result in sharpening
Frequency Domain Filtering : 29
Sharpening Filter Transfer FunctionSharpening Filter Transfer Function
Intended goal is to do the reverse operation of low-pass filters
When low-pass filer attenuates frequencies, high-pass filter
passes them
When high-pass filter attenuates frequencies, low-pass filter
passes them
( , ) 1 ( , )hp lpH u v H u v= −
Frequency Domain Filtering : 30
Some Sharpening FilterSome Sharpening Filter
Transfer FunctionsTransfer Functions
Ideal High-pass filter
Butterworth High-pass filter
Gaussian High-pass filter
0
0
0, if ( , )
( , )
1, if ( , )
D u v D
H u v
D u v D
≤
= 
>
[ ]
2
0
1
( , )
1 / ( , )
n
H u v
D D u v
=
+
2 2
0( , )/2
( , ) 1 D u v D
H u v e−
= −
Frequency Domain Filtering : 31
Sharpening Filter Transfer FunctionsSharpening Filter Transfer Functions
Frequency Domain Filtering : 32
Spatial Representation ofSpatial Representation of
Highpass FiltersHighpass Filters
Frequency Domain Filtering : 33
Filtered Results: IHPFFiltered Results: IHPF
Frequency Domain Filtering : 34
Filtered Results: BHPFFiltered Results: BHPF
Frequency Domain Filtering : 35
Filtered Results: GHPFFiltered Results: GHPF
Frequency Domain Filtering : 36
ObservationsObservations
As with ideal low-pass filter, ideal high-pass filter shows significant
ringing artifacts
Second-order Butterworth high-pass filter shows sharp edges with
minor ringing artifacts
Gaussian high-pass filter shows good sharpness in edges with no
ringing artifacts
Frequency Domain Filtering : 37
High-boost filteringHigh-boost filtering
In frequency domain
( , ) ( , ) ( , )lpg x y Af x y f x y= −
( , ) ( 1) ( , ) ( , ) ( , )hpg x y A f x y f x y h x y= − + ∗
( , ) ( 1) ( , ) ( , ) ( , )lpg x y A f x y f x y f x y= − + −
( , ) ( 1) ( , ) ( , )hpg x y A f x y f x y= − +
( , ) ( 1) ( , ) ( , ) ( , )G u v A F u v F u v H u v= − +
( , ) ( 1) ( , ) ( , )hp
hb
G u v A H u v F u v
H
 = − + 144424443
Frequency Domain Filtering : 38
High frequency emphasisHigh frequency emphasis
Advantageous to accentuate enhancements made by high- frequency
components of image in certain situations (e.g., image visualization)
Solution: multiply high-pass filter by a constant and add offset so zero
frequency term not eliminated
Generalization of high-boost filtering
( , ) ( , )hfe hpH u v a bH u v= +
Frequency Domain Filtering : 39
ResultsResults
Frequency Domain Filtering : 40
Homomorphic FilteringHomomorphic Filtering
Image can be modeled as a product of illumination (i) and
reflectance (r)
Can't operate on frequency components of illumination and
reflectance separately
( , ) ( , ) ( , )f x y i x y y x y=
[ ] [ ] [ ]( , ) ( , ) ( , )f x y i x y r x yℑ ≠ ℑ ℑ
Frequency Domain Filtering : 41
Homomorphic FilteringHomomorphic Filtering
Idea: What if we take the logarithm of the image?
Now the frequency components of i and r can be operated on
separately
ln ( , ) ln ( , ) ln ( , )f x y i x y r x y= +
[ ] [ ] [ ]ln ( , ) ln ( , ) ln ( , )f x y i x y r x yℑ = ℑ + ℑ
Frequency Domain Filtering : 42
Homomorphic FilteringHomomorphic Filtering
FrameworkFramework
Frequency Domain Filtering : 43
Homomorphic Filtering: ImageHomomorphic Filtering: Image
EnhancementEnhancement
Simultaneous dynamic range compression (reduce illumination
variation) and contrast enhancement (increase reflectance variation)
Illumination component characterized by slow spatial variations (low
spatial frequencies)
Reflectance component characterized by abrupt spatial variations
(high spatial frequencies)
Frequency Domain Filtering : 44
Homomorphic Filtering: ImageHomomorphic Filtering: Image
EnhancementEnhancement
Can be accomplished using a high frequency emphasis filter in
log space
DC gain of 0.5 (reduce illumination variations)
High frequency gain of 2 (increase reflectance variations)
Output of homomorphic filter
( )
2
( , ) ( , ) ( , )g x y i x y r x y≈
Frequency Domain Filtering : 45
ExampleExample
Frequency Domain Filtering : 46
Homomorphic Filtering: Noise ReductionHomomorphic Filtering: Noise Reduction
Multiplicative noise model
Transforming into log space turns multiplicative noise to additive noise
Low-pass filtering can now be applied to reduce noise
( , ) ( , ) ( , )f x y s x y n x y=
ln ( , ) ln ( , ) ln ( , )f x y s x y n x y= +
Frequency Domain Filtering : 47
ExampleExample

Contenu connexe

Tendances

Frequency Domain Image Enhancement Techniques
Frequency Domain Image Enhancement TechniquesFrequency Domain Image Enhancement Techniques
Frequency Domain Image Enhancement Techniques
Diwaker Pant
 
Image trnsformations
Image trnsformationsImage trnsformations
Image trnsformations
John Williams
 

Tendances (20)

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
 
Data Redundacy
Data RedundacyData Redundacy
Data Redundacy
 
Image Restoration (Digital Image Processing)
Image Restoration (Digital Image Processing)Image Restoration (Digital Image Processing)
Image Restoration (Digital Image Processing)
 
Image Representation & Descriptors
Image Representation & DescriptorsImage Representation & Descriptors
Image Representation & Descriptors
 
Digital Image Fundamentals
Digital Image FundamentalsDigital Image Fundamentals
Digital Image Fundamentals
 
Chap6 image restoration
Chap6 image restorationChap6 image restoration
Chap6 image restoration
 
Image trnsformations
Image trnsformationsImage trnsformations
Image trnsformations
 
Image Enhancement in Spatial Domain
Image Enhancement in Spatial DomainImage Enhancement in Spatial Domain
Image Enhancement in Spatial Domain
 
image enhancement
 image enhancement image enhancement
image enhancement
 
Introduction to Image Compression
Introduction to Image CompressionIntroduction to Image Compression
Introduction to Image Compression
 
Edge Detection and Segmentation
Edge Detection and SegmentationEdge Detection and Segmentation
Edge Detection and Segmentation
 
Sharpening spatial filters
Sharpening spatial filtersSharpening spatial filters
Sharpening spatial filters
 
Chapter10 image segmentation
Chapter10 image segmentationChapter10 image segmentation
Chapter10 image segmentation
 
06 spatial filtering DIP
06 spatial filtering DIP06 spatial filtering DIP
06 spatial filtering DIP
 
Unit3 dip
Unit3 dipUnit3 dip
Unit3 dip
 
Color Image Processing: Basics
Color Image Processing: BasicsColor Image Processing: Basics
Color Image Processing: Basics
 
Image Enhancement in Spatial Domain
Image Enhancement in Spatial DomainImage Enhancement in Spatial Domain
Image Enhancement in Spatial Domain
 
Simultaneous Smoothing and Sharpening of Color Images
Simultaneous Smoothing and Sharpening of Color ImagesSimultaneous Smoothing and Sharpening of Color Images
Simultaneous Smoothing and Sharpening of Color Images
 
Image Restoration (Order Statistics Filters)
Image Restoration (Order Statistics Filters)Image Restoration (Order Statistics Filters)
Image Restoration (Order Statistics Filters)
 

Similaire à 08 frequency domain filtering DIP

DIP -Unit 3 ppt.pptx
DIP -Unit 3 ppt.pptxDIP -Unit 3 ppt.pptx
DIP -Unit 3 ppt.pptx
1DA20CS085Nithyashre
 
Enhancement in frequency domain
Enhancement in frequency domainEnhancement in frequency domain
Enhancement in frequency domain
Ashish Kumar
 

Similaire à 08 frequency domain filtering DIP (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
 
Lecture 10
Lecture 10Lecture 10
Lecture 10
 
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
 
DIP -Unit 3 ppt.pptx
DIP -Unit 3 ppt.pptxDIP -Unit 3 ppt.pptx
DIP -Unit 3 ppt.pptx
 
07 frequency domain DIP
07 frequency domain DIP07 frequency domain DIP
07 frequency domain DIP
 
Enhancement in frequency domain
Enhancement in frequency domainEnhancement in frequency domain
Enhancement in frequency domain
 
Frequency Domain Filtering 1.ppt
 Frequency Domain Filtering 1.ppt Frequency Domain Filtering 1.ppt
Frequency Domain Filtering 1.ppt
 
Design of Filters PPT
Design of Filters PPTDesign of Filters PPT
Design of Filters PPT
 
04 cie552 image_filtering_frequency
04 cie552 image_filtering_frequency04 cie552 image_filtering_frequency
04 cie552 image_filtering_frequency
 
Image Restoration (Frequency Domain Filters):Basics
Image Restoration (Frequency Domain Filters):BasicsImage Restoration (Frequency Domain Filters):Basics
Image Restoration (Frequency Domain Filters):Basics
 
Module 31
Module 31Module 31
Module 31
 
image restoration.ppt
image restoration.pptimage restoration.ppt
image restoration.ppt
 
Frequency Domain FIltering.pdf
Frequency Domain FIltering.pdfFrequency Domain FIltering.pdf
Frequency Domain FIltering.pdf
 
Active filters
Active filtersActive filters
Active filters
 
Lecture 6
Lecture 6Lecture 6
Lecture 6
 
Digital Filters Part 1
Digital Filters Part 1Digital Filters Part 1
Digital Filters Part 1
 
Lecture 4
Lecture 4Lecture 4
Lecture 4
 
12936608 (2).ppt
12936608 (2).ppt12936608 (2).ppt
12936608 (2).ppt
 
234456743edc.pdf
234456743edc.pdf234456743edc.pdf
234456743edc.pdf
 

Plus de babak danyal

Lecture1 Intro To Signa
Lecture1 Intro To SignaLecture1 Intro To Signa
Lecture1 Intro To Signa
babak danyal
 

Plus de babak danyal (20)

applist
applistapplist
applist
 
Easy Steps to implement UDP Server and Client Sockets
Easy Steps to implement UDP Server and Client SocketsEasy Steps to implement UDP Server and Client Sockets
Easy Steps to implement UDP Server and Client Sockets
 
Java IO Package and Streams
Java IO Package and StreamsJava IO Package and Streams
Java IO Package and Streams
 
Swing and Graphical User Interface in Java
Swing and Graphical User Interface in JavaSwing and Graphical User Interface in Java
Swing and Graphical User Interface in Java
 
Tcp sockets
Tcp socketsTcp sockets
Tcp sockets
 
block ciphers and the des
block ciphers and the desblock ciphers and the des
block ciphers and the des
 
key distribution in network security
key distribution in network securitykey distribution in network security
key distribution in network security
 
Lecture10 Signal and Systems
Lecture10 Signal and SystemsLecture10 Signal and Systems
Lecture10 Signal and Systems
 
Lecture8 Signal and Systems
Lecture8 Signal and SystemsLecture8 Signal and Systems
Lecture8 Signal and Systems
 
Lecture7 Signal and Systems
Lecture7 Signal and SystemsLecture7 Signal and Systems
Lecture7 Signal and Systems
 
Lecture6 Signal and Systems
Lecture6 Signal and SystemsLecture6 Signal and Systems
Lecture6 Signal and Systems
 
Lecture5 Signal and Systems
Lecture5 Signal and SystemsLecture5 Signal and Systems
Lecture5 Signal and Systems
 
Lecture4 Signal and Systems
Lecture4  Signal and SystemsLecture4  Signal and Systems
Lecture4 Signal and Systems
 
Lecture3 Signal and Systems
Lecture3 Signal and SystemsLecture3 Signal and Systems
Lecture3 Signal and Systems
 
Lecture2 Signal and Systems
Lecture2 Signal and SystemsLecture2 Signal and Systems
Lecture2 Signal and Systems
 
Lecture1 Intro To Signa
Lecture1 Intro To SignaLecture1 Intro To Signa
Lecture1 Intro To Signa
 
Lecture9 Signal and Systems
Lecture9 Signal and SystemsLecture9 Signal and Systems
Lecture9 Signal and Systems
 
Lecture9
Lecture9Lecture9
Lecture9
 
Cns 13f-lec03- Classical Encryption Techniques
Cns 13f-lec03- Classical Encryption TechniquesCns 13f-lec03- Classical Encryption Techniques
Cns 13f-lec03- Classical Encryption Techniques
 
Classical Encryption Techniques in Network Security
Classical Encryption Techniques in Network SecurityClassical Encryption Techniques in Network Security
Classical Encryption Techniques in Network Security
 

Dernier

Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
kauryashika82
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
ciinovamais
 
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
 

Dernier (20)

Spatium Project Simulation student brief
Spatium Project Simulation student briefSpatium Project Simulation student brief
Spatium Project Simulation student brief
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
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
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 
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
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
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
 
PROCESS RECORDING FORMAT.docx
PROCESS      RECORDING        FORMAT.docxPROCESS      RECORDING        FORMAT.docx
PROCESS RECORDING FORMAT.docx
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
Dyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptxDyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.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
 
Third Battle of Panipat detailed notes.pptx
Third Battle of Panipat detailed notes.pptxThird Battle of Panipat detailed notes.pptx
Third Battle of Panipat detailed notes.pptx
 
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
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
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
 
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
 

08 frequency domain filtering DIP

  • 1. Frequency Domain Filtering : 1 Frequency DomainFrequency Domain FilteringFiltering
  • 2. Frequency Domain Filtering : 2 Blurring/Noise reductionBlurring/Noise reduction Noise characterized by sharp transitions in image intensity Such transitions contribute significantly to high frequency components of Fourier transform Intuitively, attenuating certain high frequency components result in blurring and reduction of image noise
  • 3. Frequency Domain Filtering : 3 Ideal Low-pass FilterIdeal Low-pass Filter Cuts off all high-frequency components at a distance greater than a certain distance from origin (cutoff frequency) 0 0 1, if ( , ) ( , ) 0, if ( , ) D u v D H u v D u v D ≤ =  >
  • 4. Frequency Domain Filtering : 4 VisualizationVisualization
  • 5. Frequency Domain Filtering : 5 Effect of Different CutoffEffect of Different Cutoff FrequenciesFrequencies
  • 6. Frequency Domain Filtering : 6 Effect of Different CutoffEffect of Different Cutoff FrequenciesFrequencies
  • 7. Frequency Domain Filtering : 7 Effect of Different CutoffEffect of Different Cutoff FrequenciesFrequencies As cutoff frequency decreases Image becomes more blurred Noise becomes reduced Analogous to larger spatial filter sizes Noticeable ringing artifacts that increase as the amount of high frequency components removed is increased
  • 8. Frequency Domain Filtering : 8 Why is there ringing?Why is there ringing? Ideal low-pass filter function is a rectangular function The inverse Fourier transform of a rectangular function is a sinc function
  • 9. Frequency Domain Filtering : 9 RingingRinging
  • 10. Frequency Domain Filtering : 10 Butterworth Low-pass FilterButterworth Low-pass Filter Transfer function does not have sharp discontinuity establishing cutoff between passed and filtered frequencies Cutoff frequency D0 defines point at which H(u,v)=0.5 [ ] 2 0 1 ( , ) 1 ( , ) / n H u v D u v D = +
  • 11. Frequency Domain Filtering : 11 Butterworth Low-pass FilterButterworth Low-pass Filter
  • 12. Frequency Domain Filtering : 12 Spatial RepresentationsSpatial Representations Tradeoff between amount of smoothing and ringing
  • 13. Frequency Domain Filtering : 13 Butterworth Low-pass Filters of DifferentButterworth Low-pass Filters of Different FrequenciesFrequencies
  • 14. Frequency Domain Filtering : 14 Gaussian Low-pass FilterGaussian Low-pass Filter Transfer function is smooth, like Butterworth filter Gaussian in frequency domain remains a Gaussian in spatial domain Advantage: No ringing artifacts 2 2 0( , )/2 ( , ) D u v D H u v e− =
  • 15. Frequency Domain Filtering : 15 Gaussian Low-pass FilterGaussian Low-pass Filter
  • 16. Frequency Domain Filtering : 16 Gaussian Low-pass FilterGaussian Low-pass Filter
  • 17. Frequency Domain Filtering : 17 Low-pass Filtering: ExampleLow-pass Filtering: Example
  • 18. Frequency Domain Filtering : 18 Low-pass Filtering: ExampleLow-pass Filtering: Example
  • 19. Frequency Domain Filtering : 19 Periodic Noise ReductionPeriodic Noise Reduction Typically occurs from electrical or electromechanical interference during image acquisition Spatially dependent noise Example: spatial sinusoidal noise
  • 20. Frequency Domain Filtering : 20 ExampleExample
  • 21. Frequency Domain Filtering : 21 ObservationsObservations Symmetric pairs of bright spots appear in the Fourier spectra Why? Fourier transform of sine function is the sum of a pair of impulse functions Intuitively, sinusoidal noise can be reduced by attenuating these bright spots [ ]0 0 0 1 sin(2 ) ( ) ( ) 2 k x j k k k kπ δ δ⇔ + − −
  • 22. Frequency Domain Filtering : 22 Bandreject FiltersBandreject Filters Removes or attenuates a band of frequencies about the origin of the Fourier transform Sinusoidal noise may be reduced by filtering the band of frequencies upon which the bright spots associated with period noise appear
  • 23. Frequency Domain Filtering : 23 Example: Ideal Bandreject FiltersExample: Ideal Bandreject Filters 0 0 0 0 1, if ( , ) 2 ( , ) 0, if ( , ) 2 2 1, if ( , ) 2 W D u v D W W H u v D D u v D W D u v D  < −   = − ≤ < +   > + 
  • 24. Frequency Domain Filtering : 24 ExampleExample
  • 25. Frequency Domain Filtering : 25 Notchreject FiltersNotchreject Filters Idea: Sinusoidal noise appears as bright spots in Fourier spectra Reject frequencies in predefined neighborhoods about a center frequency In this case, center notchreject filters around frequencies coinciding with the bright spots
  • 26. Frequency Domain Filtering : 26 Some Notchreject FiltersSome Notchreject Filters
  • 27. Frequency Domain Filtering : 27 ExampleExample
  • 28. Frequency Domain Filtering : 28 SharpeningSharpening Edges and fine detail characterized by sharp transitions in image intensity Such transitions contribute significantly to high frequency components of Fourier transform Intuitively, attenuating certain low frequency components and preserving high frequency components result in sharpening
  • 29. Frequency Domain Filtering : 29 Sharpening Filter Transfer FunctionSharpening Filter Transfer Function Intended goal is to do the reverse operation of low-pass filters When low-pass filer attenuates frequencies, high-pass filter passes them When high-pass filter attenuates frequencies, low-pass filter passes them ( , ) 1 ( , )hp lpH u v H u v= −
  • 30. Frequency Domain Filtering : 30 Some Sharpening FilterSome Sharpening Filter Transfer FunctionsTransfer Functions Ideal High-pass filter Butterworth High-pass filter Gaussian High-pass filter 0 0 0, if ( , ) ( , ) 1, if ( , ) D u v D H u v D u v D ≤ =  > [ ] 2 0 1 ( , ) 1 / ( , ) n H u v D D u v = + 2 2 0( , )/2 ( , ) 1 D u v D H u v e− = −
  • 31. Frequency Domain Filtering : 31 Sharpening Filter Transfer FunctionsSharpening Filter Transfer Functions
  • 32. Frequency Domain Filtering : 32 Spatial Representation ofSpatial Representation of Highpass FiltersHighpass Filters
  • 33. Frequency Domain Filtering : 33 Filtered Results: IHPFFiltered Results: IHPF
  • 34. Frequency Domain Filtering : 34 Filtered Results: BHPFFiltered Results: BHPF
  • 35. Frequency Domain Filtering : 35 Filtered Results: GHPFFiltered Results: GHPF
  • 36. Frequency Domain Filtering : 36 ObservationsObservations As with ideal low-pass filter, ideal high-pass filter shows significant ringing artifacts Second-order Butterworth high-pass filter shows sharp edges with minor ringing artifacts Gaussian high-pass filter shows good sharpness in edges with no ringing artifacts
  • 37. Frequency Domain Filtering : 37 High-boost filteringHigh-boost filtering In frequency domain ( , ) ( , ) ( , )lpg x y Af x y f x y= − ( , ) ( 1) ( , ) ( , ) ( , )hpg x y A f x y f x y h x y= − + ∗ ( , ) ( 1) ( , ) ( , ) ( , )lpg x y A f x y f x y f x y= − + − ( , ) ( 1) ( , ) ( , )hpg x y A f x y f x y= − + ( , ) ( 1) ( , ) ( , ) ( , )G u v A F u v F u v H u v= − + ( , ) ( 1) ( , ) ( , )hp hb G u v A H u v F u v H  = − + 144424443
  • 38. Frequency Domain Filtering : 38 High frequency emphasisHigh frequency emphasis Advantageous to accentuate enhancements made by high- frequency components of image in certain situations (e.g., image visualization) Solution: multiply high-pass filter by a constant and add offset so zero frequency term not eliminated Generalization of high-boost filtering ( , ) ( , )hfe hpH u v a bH u v= +
  • 39. Frequency Domain Filtering : 39 ResultsResults
  • 40. Frequency Domain Filtering : 40 Homomorphic FilteringHomomorphic Filtering Image can be modeled as a product of illumination (i) and reflectance (r) Can't operate on frequency components of illumination and reflectance separately ( , ) ( , ) ( , )f x y i x y y x y= [ ] [ ] [ ]( , ) ( , ) ( , )f x y i x y r x yℑ ≠ ℑ ℑ
  • 41. Frequency Domain Filtering : 41 Homomorphic FilteringHomomorphic Filtering Idea: What if we take the logarithm of the image? Now the frequency components of i and r can be operated on separately ln ( , ) ln ( , ) ln ( , )f x y i x y r x y= + [ ] [ ] [ ]ln ( , ) ln ( , ) ln ( , )f x y i x y r x yℑ = ℑ + ℑ
  • 42. Frequency Domain Filtering : 42 Homomorphic FilteringHomomorphic Filtering FrameworkFramework
  • 43. Frequency Domain Filtering : 43 Homomorphic Filtering: ImageHomomorphic Filtering: Image EnhancementEnhancement Simultaneous dynamic range compression (reduce illumination variation) and contrast enhancement (increase reflectance variation) Illumination component characterized by slow spatial variations (low spatial frequencies) Reflectance component characterized by abrupt spatial variations (high spatial frequencies)
  • 44. Frequency Domain Filtering : 44 Homomorphic Filtering: ImageHomomorphic Filtering: Image EnhancementEnhancement Can be accomplished using a high frequency emphasis filter in log space DC gain of 0.5 (reduce illumination variations) High frequency gain of 2 (increase reflectance variations) Output of homomorphic filter ( ) 2 ( , ) ( , ) ( , )g x y i x y r x y≈
  • 45. Frequency Domain Filtering : 45 ExampleExample
  • 46. Frequency Domain Filtering : 46 Homomorphic Filtering: Noise ReductionHomomorphic Filtering: Noise Reduction Multiplicative noise model Transforming into log space turns multiplicative noise to additive noise Low-pass filtering can now be applied to reduce noise ( , ) ( , ) ( , )f x y s x y n x y= ln ( , ) ln ( , ) ln ( , )f x y s x y n x y= +
  • 47. Frequency Domain Filtering : 47 ExampleExample