SlideShare une entreprise Scribd logo
1  sur  36
Unit 3-Image Enhancement
Spatial Filters
Lecture By
Kalyan Acharjya
kalyan5.blogspot.in
Lecture No 14
1
Disclaimer
 This PPT contents are copied from various
publicly available sources and all images are
copyright of the respective original owner.
 This is used for academic purpose only.
2
Spatial Filtering Methods
(or Mask Processing Methods)
output image
3
Spatial Filtering (cont’d)
 Filters are classified as:
 Low-pass (i.e., preserve low frequencies)
 High-pass (i.e., preserve high frequencies)
 Band-pass (i.e., preserve frequencies within a band)
 Band-reject (i.e., reject frequencies within a band)
4
Spatial Filtering (cont’d)
 Need to define:
 A neighborhood (or mask)
 An Mask Operation
•Typically, the neighborhood
is rectangular and its size is
much smaller than that of
f(x,y) - e.g., 3x3 or 5x5
5
Operation:
Filtered
Image
w(i,j)
f(i,j)
g(i,j)
A filtered image is generated as the center of the mask moves to
every pixel in the input image.
6
Spatial filtering - Operation
output image
Example: weighted sum of input pixels.
mask
weights:
7
Handling Pixels Close to Boundaries
Pad With Zeroes
or
0 0 0 ……………………….0
000……………………….0
8
Linear vs Non-Linear
Spatial Filtering Methods
 A filtering method is linear when the output is a weighted sum
of the input pixels.
 Methods that do not satisfy the above property are called
non-linear.
 e.g.,
9
Spatial Filters
 We will mainly focus on two types of filters:
 Smoothing (low-pass)
 Sharpening (high-pass)
10
Smoothing Filters (low-pass)
 Useful for reducing noise and eliminating
small details.
 The elements of the mask must be positive.
 Sum of mask elements is 1 (after normalization).
Gaussian
11
Smoothing filters – Example
Smoothed ImageInput Image
12
Sharpening Filters (high-pass)
 Useful for highlighting fine details.
 The elements of the mask contain both positive
and negative weights.
 Sum of mask elements is 0.
1st derivative
of Gaussian
2nd derivative
of Gaussian
13
Sharpening Filters - Example
 Warning: the results of sharpening might contain negative
values (i.e., re-map them to [0, 255])
Sharpened ImageInput Image
(for better visualization, the original
image is added to the sharpened image)
14
Common Smoothing Filters
 Averaging
 Gaussian
 Median filtering (non-linear)
15
Smoothing Filters: Averaging
Un-weighted
16
3 3 0 1 1
4 5 4 0 2
2
3 4 0 1
1
5 6 7 1
1 0 2 3 5
4 5 6 7 0
1 1 1
1 1 1
1 1 1Input Image
Mask
Smoothing Filters: Averaging
(cont’d)
 Mask size determines the degree of smoothing (loss of detail).
3x3 5x5 7x7
15x15 25x25
original
17
Image Smoothing
18
Smoothing filters: Gaussian
 The weights are samples of a 2D Gaussian
function:
mask size is
a function of σ:
σ = 1.4
19
Smoothing filters: Gaussian
(cont’d)
• σ controls the amount of smoothing
• As σ increases, more samples must be obtained to represent the Gaussian
function accurately.
σ = 3
20
Smoothing filters: Gaussian
(cont’d)
21
Averaging vs. Gaussian Smoothing
Averaging
Gaussian
22
Smoothing Filters: Median Filtering (cont’d)
 Replace each pixel by the median in a
neighborhood around the pixel.
 The size of the neighborhood controls the
amount of smoothing.
23
Smoothing Filters: Median Filtering
(non-linear)
 Very effective for removing “salt and pepper” noise (i.e., random
occurrences of black and white pixels).
Averaging
Median
Filtering
24
Original Image Image with Noise
Common Sharpening Filters
 Unsharp masking
 High Boost filter
 Gradient (1st derivative)
 Laplacian (2nd derivative)
25
Sharpening Filters: Un sharp Masking
 Obtain a sharp image by subtracting a low
pass filtered (i.e., smoothed) image from the
original image:
- =
(after contrast
enhancement)
26
Sharpening Filters: High Boost
 Image sharpening emphasizes edges but
details are lost.
 High boost filter: Amplify input image, then
subtract a Low pass image.
(A-1) + =
27
Sharpening Filters: High Boost (cont’d)
 If A=1, we get unsharp masking.
 If A>1, part of the original image is added
back to the high pass filtered image.
One way to implement
high boost filtering is using
the masks below
High boost
28
Sharpening Filters: High Boost (cont’d)
A=1.4 A=1.9
29
Sharpening Filters: Derivatives
 Taking the derivative of an image results in
sharpening the image.
 The derivative of an image (i.e., 2D function)
can be computed using the gradient.
30
How do we choose the mask weights?
 Typically, by sampling certain functions:
Gaussian
1st derivative
of Gaussian
2nd derivative
of Gaussian
31
First and Second Derivative
32
Gradient (cont’d)
 Gradient magnitude: provides information
about edge strength.
 Gradient direction: perpendicular to the
direction of the edge.
33
Derivative Results and Laplacian:
34
Reminder: Assignment
Online Submission Due Date 10 Oct 2018
1. Comments on Role of Digital Image Processing in
Modern Imaging Based Medical Treatments.
2. Explain your view on Importance of Image
Understanding in Recent Computer Vision Applications
Assignment Submission link is available at kalyan5.blogspot.in
OR
You can directly visit at http://bit.do/dipr_jnu
35
Any Questions?
Thank You
36

Contenu connexe

Tendances

Point processing
Point processingPoint processing
Point processingpanupriyaa7
 
Image Restoration (Order Statistics Filters)
Image Restoration (Order Statistics Filters)Image Restoration (Order Statistics Filters)
Image Restoration (Order Statistics Filters)Kalyan Acharjya
 
Image Enhancement in Spatial Domain
Image Enhancement in Spatial DomainImage Enhancement in Spatial Domain
Image Enhancement in Spatial DomainA B Shinde
 
Frequency Domain Image Enhancement Techniques
Frequency Domain Image Enhancement TechniquesFrequency Domain Image Enhancement Techniques
Frequency Domain Image Enhancement TechniquesDiwaker Pant
 
Image Filtering in the Frequency Domain
Image Filtering in the Frequency DomainImage Filtering in the Frequency Domain
Image Filtering in the Frequency DomainAmnaakhaan
 
Image Restoration
Image RestorationImage Restoration
Image RestorationPoonam Seth
 
Color fundamentals and color models - Digital Image Processing
Color fundamentals and color models - Digital Image ProcessingColor fundamentals and color models - Digital Image Processing
Color fundamentals and color models - Digital Image ProcessingAmna
 
Digital Image Fundamentals
Digital Image FundamentalsDigital Image Fundamentals
Digital Image FundamentalsA B Shinde
 
Image Enhancement in Spatial Domain
Image Enhancement in Spatial DomainImage Enhancement in Spatial Domain
Image Enhancement in Spatial DomainDEEPASHRI HK
 
Chapter 9 morphological image processing
Chapter 9   morphological image processingChapter 9   morphological image processing
Chapter 9 morphological image processingAhmed Daoud
 
Enhancement in frequency domain
Enhancement in frequency domainEnhancement in frequency domain
Enhancement in frequency domainAshish Kumar
 
Enhancement in spatial domain
Enhancement in spatial domainEnhancement in spatial domain
Enhancement in spatial domainAshish Kumar
 
Spatial filtering using image processing
Spatial filtering using image processingSpatial filtering using image processing
Spatial filtering using image processingAnuj Arora
 

Tendances (20)

image compression ppt
image compression pptimage compression ppt
image compression ppt
 
Point processing
Point processingPoint processing
Point processing
 
Sharpening spatial filters
Sharpening spatial filtersSharpening spatial filters
Sharpening spatial filters
 
Image Restoration (Order Statistics Filters)
Image Restoration (Order Statistics Filters)Image Restoration (Order Statistics Filters)
Image Restoration (Order Statistics Filters)
 
Image Enhancement in Spatial Domain
Image Enhancement in Spatial DomainImage Enhancement in Spatial Domain
Image Enhancement in Spatial Domain
 
SPATIAL FILTER
SPATIAL FILTERSPATIAL FILTER
SPATIAL FILTER
 
Frequency Domain Image Enhancement Techniques
Frequency Domain Image Enhancement TechniquesFrequency Domain Image Enhancement Techniques
Frequency Domain Image Enhancement Techniques
 
Image Filtering in the Frequency Domain
Image Filtering in the Frequency DomainImage Filtering in the Frequency Domain
Image Filtering in the Frequency Domain
 
Image Restoration
Image RestorationImage Restoration
Image Restoration
 
Spatial filtering
Spatial filteringSpatial filtering
Spatial filtering
 
Color fundamentals and color models - Digital Image Processing
Color fundamentals and color models - Digital Image ProcessingColor fundamentals and color models - Digital Image Processing
Color fundamentals and color models - Digital Image Processing
 
Digital Image Fundamentals
Digital Image FundamentalsDigital Image Fundamentals
Digital Image Fundamentals
 
Image Enhancement in Spatial Domain
Image Enhancement in Spatial DomainImage Enhancement in Spatial Domain
Image Enhancement in Spatial Domain
 
Chapter 9 morphological image processing
Chapter 9   morphological image processingChapter 9   morphological image processing
Chapter 9 morphological image processing
 
Enhancement in frequency domain
Enhancement in frequency domainEnhancement in frequency domain
Enhancement in frequency domain
 
Spatial domain and filtering
Spatial domain and filteringSpatial domain and filtering
Spatial domain and filtering
 
Image enhancement
Image enhancementImage enhancement
Image enhancement
 
Psuedo color
Psuedo colorPsuedo color
Psuedo color
 
Enhancement in spatial domain
Enhancement in spatial domainEnhancement in spatial domain
Enhancement in spatial domain
 
Spatial filtering using image processing
Spatial filtering using image processingSpatial filtering using image processing
Spatial filtering using image processing
 

Similaire à Spatial Filters (Digital Image Processing)

Spatial Filtering in intro image processingr
Spatial Filtering in intro image processingrSpatial Filtering in intro image processingr
Spatial Filtering in intro image processingrkumarankit06875
 
Spatial filtering
Spatial filteringSpatial filtering
Spatial filteringDeepikaT13
 
06 spatial filtering DIP
06 spatial filtering DIP06 spatial filtering DIP
06 spatial 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
 
DIP_Lecture6.pdf. jdowjwdieehekehdjejrejwhehr
DIP_Lecture6.pdf. jdowjwdieehekehdjejrejwhehrDIP_Lecture6.pdf. jdowjwdieehekehdjejrejwhehr
DIP_Lecture6.pdf. jdowjwdieehekehdjejrejwhehrstudyd133
 
CSE367 Lecture- image sinal processing lecture
CSE367 Lecture- image sinal processing lectureCSE367 Lecture- image sinal processing lecture
CSE367 Lecture- image sinal processing lectureFatmaNewagy1
 
Adaptive unsharp masking
Adaptive unsharp maskingAdaptive unsharp masking
Adaptive unsharp maskingRavi Teja
 
Visual Quality for both Images and Display of Systems by Visual Enhancement u...
Visual Quality for both Images and Display of Systems by Visual Enhancement u...Visual Quality for both Images and Display of Systems by Visual Enhancement u...
Visual Quality for both Images and Display of Systems by Visual Enhancement u...IJMER
 
Lecture 5-2023.pdf
Lecture 5-2023.pdfLecture 5-2023.pdf
Lecture 5-2023.pdfssuserff72e4
 
Designed by Identity MLP
Designed by Identity MLP Designed by Identity MLP
Designed by Identity MLP butest
 
Image enhancement lecture
Image enhancement lectureImage enhancement lecture
Image enhancement lectureISRAR HUSSAIN
 
Lecture_Spatial_Filters.pptx
Lecture_Spatial_Filters.pptxLecture_Spatial_Filters.pptx
Lecture_Spatial_Filters.pptxmahirazainab
 
Project 2-Image_Processng by Anish Hemmady
Project 2-Image_Processng by Anish HemmadyProject 2-Image_Processng by Anish Hemmady
Project 2-Image_Processng by Anish Hemmadyanish h
 
Image_filtering (1).pptx
Image_filtering (1).pptxImage_filtering (1).pptx
Image_filtering (1).pptxwdwd10
 
Image enhancement ppt nal2
Image enhancement ppt nal2Image enhancement ppt nal2
Image enhancement ppt nal2Surabhi Ks
 
CE344L-200365-Lab6.pdf
CE344L-200365-Lab6.pdfCE344L-200365-Lab6.pdf
CE344L-200365-Lab6.pdfUmarMustafa13
 

Similaire à Spatial Filters (Digital Image Processing) (20)

Spatial filtering
Spatial filteringSpatial filtering
Spatial filtering
 
Spatial Filtering in intro image processingr
Spatial Filtering in intro image processingrSpatial Filtering in intro image processingr
Spatial Filtering in intro image processingr
 
Spatial filtering
Spatial filteringSpatial filtering
Spatial filtering
 
06 spatial filtering DIP
06 spatial filtering DIP06 spatial filtering DIP
06 spatial filtering DIP
 
2. filtering basics
2. filtering basics2. filtering basics
2. filtering basics
 
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
 
DIP_Lecture6.pdf. jdowjwdieehekehdjejrejwhehr
DIP_Lecture6.pdf. jdowjwdieehekehdjejrejwhehrDIP_Lecture6.pdf. jdowjwdieehekehdjejrejwhehr
DIP_Lecture6.pdf. jdowjwdieehekehdjejrejwhehr
 
CSE367 Lecture- image sinal processing lecture
CSE367 Lecture- image sinal processing lectureCSE367 Lecture- image sinal processing lecture
CSE367 Lecture- image sinal processing lecture
 
Adaptive unsharp masking
Adaptive unsharp maskingAdaptive unsharp masking
Adaptive unsharp masking
 
Visual Quality for both Images and Display of Systems by Visual Enhancement u...
Visual Quality for both Images and Display of Systems by Visual Enhancement u...Visual Quality for both Images and Display of Systems by Visual Enhancement u...
Visual Quality for both Images and Display of Systems by Visual Enhancement u...
 
Lecture 5-2023.pdf
Lecture 5-2023.pdfLecture 5-2023.pdf
Lecture 5-2023.pdf
 
Designed by Identity MLP
Designed by Identity MLP Designed by Identity MLP
Designed by Identity MLP
 
Image enhancement lecture
Image enhancement lectureImage enhancement lecture
Image enhancement lecture
 
Lecture_Spatial_Filters.pptx
Lecture_Spatial_Filters.pptxLecture_Spatial_Filters.pptx
Lecture_Spatial_Filters.pptx
 
Project 2-Image_Processng by Anish Hemmady
Project 2-Image_Processng by Anish HemmadyProject 2-Image_Processng by Anish Hemmady
Project 2-Image_Processng by Anish Hemmady
 
Image_filtering (1).pptx
Image_filtering (1).pptxImage_filtering (1).pptx
Image_filtering (1).pptx
 
Image enhancement ppt nal2
Image enhancement ppt nal2Image enhancement ppt nal2
Image enhancement ppt nal2
 
4 image enhancement in spatial domain
4 image enhancement in spatial domain4 image enhancement in spatial domain
4 image enhancement in spatial domain
 
CE344L-200365-Lab6.pdf
CE344L-200365-Lab6.pdfCE344L-200365-Lab6.pdf
CE344L-200365-Lab6.pdf
 

Plus de Kalyan Acharjya

Introduction to Image Compression
Introduction to Image CompressionIntroduction to Image Compression
Introduction to Image CompressionKalyan Acharjya
 
Introduction to Image Compression
Introduction to Image CompressionIntroduction to Image Compression
Introduction to Image CompressionKalyan Acharjya
 
Image Restoration (Frequency Domain Filters):Basics
Image Restoration (Frequency Domain Filters):BasicsImage Restoration (Frequency Domain Filters):Basics
Image Restoration (Frequency Domain Filters):BasicsKalyan Acharjya
 
Histogram Specification or Matching Problem
Histogram Specification or Matching ProblemHistogram Specification or Matching Problem
Histogram Specification or Matching ProblemKalyan Acharjya
 
Digital Image Fundamentals
Digital Image FundamentalsDigital Image Fundamentals
Digital Image FundamentalsKalyan Acharjya
 
Fundamental Steps of Digital Image Processing & Image Components
Fundamental Steps of Digital Image Processing & Image ComponentsFundamental Steps of Digital Image Processing & Image Components
Fundamental Steps of Digital Image Processing & Image ComponentsKalyan Acharjya
 
Introduction to Image Processing:Image Modalities
Introduction to Image Processing:Image ModalitiesIntroduction to Image Processing:Image Modalities
Introduction to Image Processing:Image ModalitiesKalyan Acharjya
 
Electron Microscopy (SEM & TEM)
Electron Microscopy (SEM & TEM)Electron Microscopy (SEM & TEM)
Electron Microscopy (SEM & TEM)Kalyan Acharjya
 
Photodetector (Photodiode)
Photodetector (Photodiode)Photodetector (Photodiode)
Photodetector (Photodiode)Kalyan Acharjya
 
Fiber End Preparations & Splicing
Fiber End Preparations & SplicingFiber End Preparations & Splicing
Fiber End Preparations & SplicingKalyan Acharjya
 
Connector losses Optical Fiber Cable
Connector losses Optical Fiber CableConnector losses Optical Fiber Cable
Connector losses Optical Fiber CableKalyan Acharjya
 
Introduction to VLSI Design
Introduction to VLSI DesignIntroduction to VLSI Design
Introduction to VLSI DesignKalyan Acharjya
 
Guidlines for ppt Design
Guidlines for ppt DesignGuidlines for ppt Design
Guidlines for ppt DesignKalyan Acharjya
 
B.Tech Seminar schedule dates 8 EC B2 2016
B.Tech Seminar schedule dates 8 EC B2 2016B.Tech Seminar schedule dates 8 EC B2 2016
B.Tech Seminar schedule dates 8 EC B2 2016Kalyan Acharjya
 
Face recognition Face Identification
Face recognition Face IdentificationFace recognition Face Identification
Face recognition Face IdentificationKalyan Acharjya
 
Internship Presentation B.Tech Communication Networks
Internship Presentation B.Tech Communication NetworksInternship Presentation B.Tech Communication Networks
Internship Presentation B.Tech Communication NetworksKalyan Acharjya
 

Plus de Kalyan Acharjya (20)

Introduction to Image Compression
Introduction to Image CompressionIntroduction to Image Compression
Introduction to Image Compression
 
Introduction to Image Compression
Introduction to Image CompressionIntroduction to Image Compression
Introduction to Image Compression
 
Image Restoration (Frequency Domain Filters):Basics
Image Restoration (Frequency Domain Filters):BasicsImage Restoration (Frequency Domain Filters):Basics
Image Restoration (Frequency Domain Filters):Basics
 
Histogram Specification or Matching Problem
Histogram Specification or Matching ProblemHistogram Specification or Matching Problem
Histogram Specification or Matching Problem
 
Histogram Equalization
Histogram EqualizationHistogram Equalization
Histogram Equalization
 
Digital Image Fundamentals
Digital Image FundamentalsDigital Image Fundamentals
Digital Image Fundamentals
 
Fundamental Steps of Digital Image Processing & Image Components
Fundamental Steps of Digital Image Processing & Image ComponentsFundamental Steps of Digital Image Processing & Image Components
Fundamental Steps of Digital Image Processing & Image Components
 
Introduction to Image Processing:Image Modalities
Introduction to Image Processing:Image ModalitiesIntroduction to Image Processing:Image Modalities
Introduction to Image Processing:Image Modalities
 
Electron Microscopy (SEM & TEM)
Electron Microscopy (SEM & TEM)Electron Microscopy (SEM & TEM)
Electron Microscopy (SEM & TEM)
 
Stick Diagram
Stick DiagramStick Diagram
Stick Diagram
 
Hypothesis Testing
Hypothesis TestingHypothesis Testing
Hypothesis Testing
 
Photodetector (Photodiode)
Photodetector (Photodiode)Photodetector (Photodiode)
Photodetector (Photodiode)
 
Fiber fabrication
Fiber fabricationFiber fabrication
Fiber fabrication
 
Fiber End Preparations & Splicing
Fiber End Preparations & SplicingFiber End Preparations & Splicing
Fiber End Preparations & Splicing
 
Connector losses Optical Fiber Cable
Connector losses Optical Fiber CableConnector losses Optical Fiber Cable
Connector losses Optical Fiber Cable
 
Introduction to VLSI Design
Introduction to VLSI DesignIntroduction to VLSI Design
Introduction to VLSI Design
 
Guidlines for ppt Design
Guidlines for ppt DesignGuidlines for ppt Design
Guidlines for ppt Design
 
B.Tech Seminar schedule dates 8 EC B2 2016
B.Tech Seminar schedule dates 8 EC B2 2016B.Tech Seminar schedule dates 8 EC B2 2016
B.Tech Seminar schedule dates 8 EC B2 2016
 
Face recognition Face Identification
Face recognition Face IdentificationFace recognition Face Identification
Face recognition Face Identification
 
Internship Presentation B.Tech Communication Networks
Internship Presentation B.Tech Communication NetworksInternship Presentation B.Tech Communication Networks
Internship Presentation B.Tech Communication Networks
 

Dernier

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.MaryamAhmad92
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdfQucHHunhnh
 
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 ClassesCeline George
 
PROCESS RECORDING FORMAT.docx
PROCESS      RECORDING        FORMAT.docxPROCESS      RECORDING        FORMAT.docx
PROCESS RECORDING FORMAT.docxPoojaSen20
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxVishalSingh1417
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfJayanti Pande
 
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...Poonam Aher Patil
 
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.pptxheathfieldcps1
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxVishalSingh1417
 
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...christianmathematics
 
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 Delhikauryashika82
 
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 . pdfQucHHunhnh
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfPoh-Sun Goh
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxnegromaestrong
 
psychiatric nursing HISTORY COLLECTION .docx
psychiatric  nursing HISTORY  COLLECTION  .docxpsychiatric  nursing HISTORY  COLLECTION  .docx
psychiatric nursing HISTORY COLLECTION .docxPoojaSen20
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfAyushMahapatra5
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxRamakrishna Reddy Bijjam
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptxMaritesTamaniVerdade
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeThiyagu K
 

Dernier (20)

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.
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.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
 
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
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
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...
 
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
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).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...
 
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
 
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
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptx
 
psychiatric nursing HISTORY COLLECTION .docx
psychiatric  nursing HISTORY  COLLECTION  .docxpsychiatric  nursing HISTORY  COLLECTION  .docx
psychiatric nursing HISTORY COLLECTION .docx
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdf
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 

Spatial Filters (Digital Image Processing)

  • 1. Unit 3-Image Enhancement Spatial Filters Lecture By Kalyan Acharjya kalyan5.blogspot.in Lecture No 14 1
  • 2. Disclaimer  This PPT contents are copied from various publicly available sources and all images are copyright of the respective original owner.  This is used for academic purpose only. 2
  • 3. Spatial Filtering Methods (or Mask Processing Methods) output image 3
  • 4. Spatial Filtering (cont’d)  Filters are classified as:  Low-pass (i.e., preserve low frequencies)  High-pass (i.e., preserve high frequencies)  Band-pass (i.e., preserve frequencies within a band)  Band-reject (i.e., reject frequencies within a band) 4
  • 5. Spatial Filtering (cont’d)  Need to define:  A neighborhood (or mask)  An Mask Operation •Typically, the neighborhood is rectangular and its size is much smaller than that of f(x,y) - e.g., 3x3 or 5x5 5
  • 6. Operation: Filtered Image w(i,j) f(i,j) g(i,j) A filtered image is generated as the center of the mask moves to every pixel in the input image. 6
  • 7. Spatial filtering - Operation output image Example: weighted sum of input pixels. mask weights: 7
  • 8. Handling Pixels Close to Boundaries Pad With Zeroes or 0 0 0 ……………………….0 000……………………….0 8
  • 9. Linear vs Non-Linear Spatial Filtering Methods  A filtering method is linear when the output is a weighted sum of the input pixels.  Methods that do not satisfy the above property are called non-linear.  e.g., 9
  • 10. Spatial Filters  We will mainly focus on two types of filters:  Smoothing (low-pass)  Sharpening (high-pass) 10
  • 11. Smoothing Filters (low-pass)  Useful for reducing noise and eliminating small details.  The elements of the mask must be positive.  Sum of mask elements is 1 (after normalization). Gaussian 11
  • 12. Smoothing filters – Example Smoothed ImageInput Image 12
  • 13. Sharpening Filters (high-pass)  Useful for highlighting fine details.  The elements of the mask contain both positive and negative weights.  Sum of mask elements is 0. 1st derivative of Gaussian 2nd derivative of Gaussian 13
  • 14. Sharpening Filters - Example  Warning: the results of sharpening might contain negative values (i.e., re-map them to [0, 255]) Sharpened ImageInput Image (for better visualization, the original image is added to the sharpened image) 14
  • 15. Common Smoothing Filters  Averaging  Gaussian  Median filtering (non-linear) 15
  • 16. Smoothing Filters: Averaging Un-weighted 16 3 3 0 1 1 4 5 4 0 2 2 3 4 0 1 1 5 6 7 1 1 0 2 3 5 4 5 6 7 0 1 1 1 1 1 1 1 1 1Input Image Mask
  • 17. Smoothing Filters: Averaging (cont’d)  Mask size determines the degree of smoothing (loss of detail). 3x3 5x5 7x7 15x15 25x25 original 17
  • 19. Smoothing filters: Gaussian  The weights are samples of a 2D Gaussian function: mask size is a function of σ: σ = 1.4 19
  • 20. Smoothing filters: Gaussian (cont’d) • σ controls the amount of smoothing • As σ increases, more samples must be obtained to represent the Gaussian function accurately. σ = 3 20
  • 22. Averaging vs. Gaussian Smoothing Averaging Gaussian 22
  • 23. Smoothing Filters: Median Filtering (cont’d)  Replace each pixel by the median in a neighborhood around the pixel.  The size of the neighborhood controls the amount of smoothing. 23
  • 24. Smoothing Filters: Median Filtering (non-linear)  Very effective for removing “salt and pepper” noise (i.e., random occurrences of black and white pixels). Averaging Median Filtering 24 Original Image Image with Noise
  • 25. Common Sharpening Filters  Unsharp masking  High Boost filter  Gradient (1st derivative)  Laplacian (2nd derivative) 25
  • 26. Sharpening Filters: Un sharp Masking  Obtain a sharp image by subtracting a low pass filtered (i.e., smoothed) image from the original image: - = (after contrast enhancement) 26
  • 27. Sharpening Filters: High Boost  Image sharpening emphasizes edges but details are lost.  High boost filter: Amplify input image, then subtract a Low pass image. (A-1) + = 27
  • 28. Sharpening Filters: High Boost (cont’d)  If A=1, we get unsharp masking.  If A>1, part of the original image is added back to the high pass filtered image. One way to implement high boost filtering is using the masks below High boost 28
  • 29. Sharpening Filters: High Boost (cont’d) A=1.4 A=1.9 29
  • 30. Sharpening Filters: Derivatives  Taking the derivative of an image results in sharpening the image.  The derivative of an image (i.e., 2D function) can be computed using the gradient. 30
  • 31. How do we choose the mask weights?  Typically, by sampling certain functions: Gaussian 1st derivative of Gaussian 2nd derivative of Gaussian 31
  • 32. First and Second Derivative 32
  • 33. Gradient (cont’d)  Gradient magnitude: provides information about edge strength.  Gradient direction: perpendicular to the direction of the edge. 33
  • 34. Derivative Results and Laplacian: 34
  • 35. Reminder: Assignment Online Submission Due Date 10 Oct 2018 1. Comments on Role of Digital Image Processing in Modern Imaging Based Medical Treatments. 2. Explain your view on Importance of Image Understanding in Recent Computer Vision Applications Assignment Submission link is available at kalyan5.blogspot.in OR You can directly visit at http://bit.do/dipr_jnu 35