SlideShare a Scribd company logo
By
Mr. S. M. Karve
IMAGE ENHANCEMENT
TECHNIQUES
IMAGE
ENHANCEMENT
SPATIAL FREQUENCY
FILTERING
FILTERING
1.SMOOTHING
2.SHARPENING
1.SMOOTHING
2.SHARPENING
Introduction To Filters
FILTER:
Filter is a process that removes some unwanted
components or small details in a image.
TYPES OF FILTERS :
O SPATIAL DOMAIN FILTERS
O FREQUENCY DOMAIN FILTERS
SPATIAL FILTER
The spatial filter is just moving the
filter mask from point to point in an image.
The filter mask may be 3x3 mask or 5x5
mask or to be 7x7 mask.
Example
3x3 mask in a 5x5 image
Generating Spatial Filter mask
O Generate mxn linear Spatial filter requires mn mask
coefficients.These are selected based on the type of filter. so
it computes the sum of products
Example ,the average of 3x3 neighborhood on (x,y) is
calculated by using the formula
O If we take Gaussian function of 2 values the basic formula as
follows
O ‘σ’ is standard deviation , x and y are integers.
The Approaches
of
Spatial Filtering
Spatial filter consist of two steps
O A neighborhood (small rectangle)
O A predefined operation performed on
image pixels.
Filtering creates a new pixel value replaced by
old pixel value.
3*3 mask and the image section
Types Of Spatial Filters
There are two types of filter,
1.Linear Spatial Filter
2.Non Linear Spatial Filter
O Each pixel in an image can be replaced with constant
value then it is called as linear spatial filter otherwise
it is called as non-linear.
Spatial Filter Expression
O For m x n size of image,
we assume m=2a+1 & n=2b+1 where a,b are
positive integers. so the linear spatial filter of image
MxN with filter size mxn is by following expression.
Spatial Correlation &
Convolution
O Correlation is moving the filter over the image
find the sum of products in each location.
O Convolution process is same as correlation but
the filter is first rotate by 180 degree.
Smoothing Spatial Filters
OSmoothing filters are used for blurring
and for noise reduction.
OBlurring is used as preprocessing such
as removal of small details from
image.
ONoise reduction is blurring with linear
or non linear filter.
IMAGE
SMOOTHING
TYPES OF SMOOTHING
SPATIAL FILTER
SMOOTHING
FILTERS
NON-LINEAR
FILTERS
LINEAR
FILTERS
MINMAX
FILTERS
MEDIAN
FILTERS
AVERAGING
FILTERS
Smoothing With Linear Filter
AVERAGING FILTER:
O The output of linear spatial filter computes the average
of pixels is called averaging filter or low pass filter.
O The major usage of average filter is reduction of
irrelevant detail in an image.
1
1
1
1
1
1
1 1
2
1
2
4
2
1
2
1
1/9 x 1/16 x
1
1
Cont,.
O Standard average of pixels calculated as follows
O At the end of filtering the entire image is divided by 9.
O So mxn is equal to 1/mn. Thus the coefficients pixels
are equal, so the filter is called box filter.
Non- Linear Spatial
Filter(order Statistic Filter)
MEDIAN FILTER:
O This filter ordering the pixels by replacing the value of
the center pixel with the value of rank list. The best
know filter in this category is median filter. This is best
for noise reduction.
O This median filter is effective for impulse noise called
as salt & pepper noise.
MAX FILTER:
OThe max filter also used for spatial
filtering.This is used for finding the
brightest points of an image.
OExpression of max filter is
R=max {Zk| k= 1,2,3,…….9}
MIN FILTER:
The min filter also used it is opposite of
max that is find the dull points of an image.
Expression of max filter is
R=min{Zk| k= 1,2,3,…….9}
Sharpening Spatial Filters
O The sharpening spatial is to highlight the transactions
in intensity .
O There are many applications, such as
electronic priming,
medical images,
military systems are used this sharpening
technique.
Spatial Domain Filtering.pdf
Foundation
Sharpening filters that are based on two
derivatives.
1.First derivatives.
2.Second derivatives.
First derivative :
O Must be zero for area of constant intensity.
O Must be nonzero of intensity step or map.
O Must be nonzero along ramp.
(σ f/σ x) = f (x +1) – f (x).
Second derivative
O Must be zero in constant areas.
O Must be nonzero at one end and other end of
intensity ramp.
O Must be zero along ramps.
Image Sharpening(the Laplacian)
O This approach uses the second order derivative for
construct the filter mask.
O The laplacian for the image function f(x,y) of two
variable is,
O The X direction,
O For Y direction,
By concluding the above three equations,
Taking the derivative of an image results in
sharpening of an image.
The derivative of an image cam be computing by
using gradient
Spatial Domain Filtering.pdf

More Related Content

PPTX
Chapter 1 and 2 gonzalez and woods
PPT
Image segmentation
PPTX
Module 31
PPT
ImageProcessing10-Segmentation(Thresholding) (1).ppt
PPT
Spatial filtering
PPTX
Transform coding
PPTX
Image segmentation
PPT
Chapter 5 Image Processing: Fourier Transformation
Chapter 1 and 2 gonzalez and woods
Image segmentation
Module 31
ImageProcessing10-Segmentation(Thresholding) (1).ppt
Spatial filtering
Transform coding
Image segmentation
Chapter 5 Image Processing: Fourier Transformation

What's hot (20)

PPTX
Digital Image restoration
PPT
08 frequency domain filtering DIP
PPTX
Image segmentation in Digital Image Processing
PPTX
Fundamental steps in image processing
PPTX
Image Filtering in the Frequency Domain
PDF
IMAGE SEGMENTATION BY USING THRESHOLDING TECHNIQUES FOR MEDICAL IMAGES
PDF
Image restoration
PPT
PDF
Frequency Domain FIltering.pdf
PPTX
Chap6 image restoration
PPT
Spatial filtering
PPTX
Digital image processing
PPTX
Digital Image Processing
PPT
Digital Image Processing_ ch2 enhancement spatial-domain
PPTX
Convolution&Correlation
PPTX
IMAGE SEGMENTATION.
PPSX
Image Enhancement in Spatial Domain
PPT
Chapter10 image segmentation
PPTX
Chapter 9 morphological image processing
PPTX
Histogram Processing
Digital Image restoration
08 frequency domain filtering DIP
Image segmentation in Digital Image Processing
Fundamental steps in image processing
Image Filtering in the Frequency Domain
IMAGE SEGMENTATION BY USING THRESHOLDING TECHNIQUES FOR MEDICAL IMAGES
Image restoration
Frequency Domain FIltering.pdf
Chap6 image restoration
Spatial filtering
Digital image processing
Digital Image Processing
Digital Image Processing_ ch2 enhancement spatial-domain
Convolution&Correlation
IMAGE SEGMENTATION.
Image Enhancement in Spatial Domain
Chapter10 image segmentation
Chapter 9 morphological image processing
Histogram Processing
Ad

Similar to Spatial Domain Filtering.pdf (20)

PPTX
SPATIAL FILTERING IN IMAGE PROCESSING
PPTX
PPTX
Spatial operation.ppt
PDF
CSE367 Lecture- image sinal processing lecture
PPT
06 spatial filtering DIP
PPTX
imge enhncement sptil filtering55555.pptx
PPT
3 intensity transformations and spatial filtering slides
PPSX
Image Processing: Spatial filters
PPTX
Smoothing in Digital Image Processing
PPTX
Image enhancement techniques - Digital Image Processing
PPTX
SPATIAL FILTERING. FOR UNDERGRADUATE .pptx
PPTX
Spatial Filters (Digital Image Processing)
PPTX
Lec5_AIP [Spatial Filtering] (1).pptxJJJJJJJJJJJJJJJJJJJJJJJ
PPTX
Lec5_AIP [Spatial Filtering] (1).pptxt767686777
PPTX
3rd unit.pptx
PPTX
Image filtering in Digital image processing
PPT
Digital Image Processing UNIT-2.ppt
PPTX
Computer Vision Btech ECE MOD 1-PART 2.pptx
PPT
Spatial domain and filtering
PPTX
Unit-2 Image Enhancement and Restoration Techniques.pptx
SPATIAL FILTERING IN IMAGE PROCESSING
Spatial operation.ppt
CSE367 Lecture- image sinal processing lecture
06 spatial filtering DIP
imge enhncement sptil filtering55555.pptx
3 intensity transformations and spatial filtering slides
Image Processing: Spatial filters
Smoothing in Digital Image Processing
Image enhancement techniques - Digital Image Processing
SPATIAL FILTERING. FOR UNDERGRADUATE .pptx
Spatial Filters (Digital Image Processing)
Lec5_AIP [Spatial Filtering] (1).pptxJJJJJJJJJJJJJJJJJJJJJJJ
Lec5_AIP [Spatial Filtering] (1).pptxt767686777
3rd unit.pptx
Image filtering in Digital image processing
Digital Image Processing UNIT-2.ppt
Computer Vision Btech ECE MOD 1-PART 2.pptx
Spatial domain and filtering
Unit-2 Image Enhancement and Restoration Techniques.pptx
Ad

More from swagatkarve (11)

PDF
Revised-SOP-FOR-UG-AFFILIATED-01.01.2021.pdf
PPTX
Unit No. 1 Artificial Intelligence Overview.pptx
PPTX
Unit 2. Image Enhancement in Spatial Domain.pptx
PPTX
CN PPT MMZ 9 Jan 2024.pptx
PPTX
Intro to Subject.pptx
PPTX
EXPT1.pptx
PPTX
Lab Charts .pptx
PPT
osi.ppt
PPTX
Unit 3 testing of logic circuits
PPTX
Unit no. 5 cmos logic design
PDF
Vlsi design mc qs
Revised-SOP-FOR-UG-AFFILIATED-01.01.2021.pdf
Unit No. 1 Artificial Intelligence Overview.pptx
Unit 2. Image Enhancement in Spatial Domain.pptx
CN PPT MMZ 9 Jan 2024.pptx
Intro to Subject.pptx
EXPT1.pptx
Lab Charts .pptx
osi.ppt
Unit 3 testing of logic circuits
Unit no. 5 cmos logic design
Vlsi design mc qs

Recently uploaded (20)

PPTX
IOT PPTs Week 10 Lecture Material.pptx of NPTEL Smart Cities contd
PPTX
MET 305 2019 SCHEME MODULE 2 COMPLETE.pptx
PPTX
Geodesy 1.pptx...............................................
PDF
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf
PDF
Evaluating the Democratization of the Turkish Armed Forces from a Normative P...
PDF
Mitigating Risks through Effective Management for Enhancing Organizational Pe...
PPTX
web development for engineering and engineering
PPTX
bas. eng. economics group 4 presentation 1.pptx
PPTX
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
PDF
PRIZ Academy - 9 Windows Thinking Where to Invest Today to Win Tomorrow.pdf
PPTX
OOP with Java - Java Introduction (Basics)
PDF
PPT on Performance Review to get promotions
PDF
Digital Logic Computer Design lecture notes
PPTX
UNIT-1 - COAL BASED THERMAL POWER PLANTS
PDF
Operating System & Kernel Study Guide-1 - converted.pdf
PDF
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
DOCX
573137875-Attendance-Management-System-original
PPTX
KTU 2019 -S7-MCN 401 MODULE 2-VINAY.pptx
PDF
composite construction of structures.pdf
PDF
Well-logging-methods_new................
IOT PPTs Week 10 Lecture Material.pptx of NPTEL Smart Cities contd
MET 305 2019 SCHEME MODULE 2 COMPLETE.pptx
Geodesy 1.pptx...............................................
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf
Evaluating the Democratization of the Turkish Armed Forces from a Normative P...
Mitigating Risks through Effective Management for Enhancing Organizational Pe...
web development for engineering and engineering
bas. eng. economics group 4 presentation 1.pptx
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
PRIZ Academy - 9 Windows Thinking Where to Invest Today to Win Tomorrow.pdf
OOP with Java - Java Introduction (Basics)
PPT on Performance Review to get promotions
Digital Logic Computer Design lecture notes
UNIT-1 - COAL BASED THERMAL POWER PLANTS
Operating System & Kernel Study Guide-1 - converted.pdf
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
573137875-Attendance-Management-System-original
KTU 2019 -S7-MCN 401 MODULE 2-VINAY.pptx
composite construction of structures.pdf
Well-logging-methods_new................

Spatial Domain Filtering.pdf

  • 1. By Mr. S. M. Karve
  • 3. Introduction To Filters FILTER: Filter is a process that removes some unwanted components or small details in a image. TYPES OF FILTERS : O SPATIAL DOMAIN FILTERS O FREQUENCY DOMAIN FILTERS
  • 4. SPATIAL FILTER The spatial filter is just moving the filter mask from point to point in an image. The filter mask may be 3x3 mask or 5x5 mask or to be 7x7 mask. Example 3x3 mask in a 5x5 image
  • 5. Generating Spatial Filter mask O Generate mxn linear Spatial filter requires mn mask coefficients.These are selected based on the type of filter. so it computes the sum of products Example ,the average of 3x3 neighborhood on (x,y) is calculated by using the formula O If we take Gaussian function of 2 values the basic formula as follows O ‘σ’ is standard deviation , x and y are integers.
  • 6. The Approaches of Spatial Filtering Spatial filter consist of two steps O A neighborhood (small rectangle) O A predefined operation performed on image pixels. Filtering creates a new pixel value replaced by old pixel value.
  • 7. 3*3 mask and the image section
  • 8. Types Of Spatial Filters There are two types of filter, 1.Linear Spatial Filter 2.Non Linear Spatial Filter O Each pixel in an image can be replaced with constant value then it is called as linear spatial filter otherwise it is called as non-linear.
  • 9. Spatial Filter Expression O For m x n size of image, we assume m=2a+1 & n=2b+1 where a,b are positive integers. so the linear spatial filter of image MxN with filter size mxn is by following expression.
  • 10. Spatial Correlation & Convolution O Correlation is moving the filter over the image find the sum of products in each location. O Convolution process is same as correlation but the filter is first rotate by 180 degree.
  • 11. Smoothing Spatial Filters OSmoothing filters are used for blurring and for noise reduction. OBlurring is used as preprocessing such as removal of small details from image. ONoise reduction is blurring with linear or non linear filter.
  • 13. TYPES OF SMOOTHING SPATIAL FILTER SMOOTHING FILTERS NON-LINEAR FILTERS LINEAR FILTERS MINMAX FILTERS MEDIAN FILTERS AVERAGING FILTERS
  • 14. Smoothing With Linear Filter AVERAGING FILTER: O The output of linear spatial filter computes the average of pixels is called averaging filter or low pass filter. O The major usage of average filter is reduction of irrelevant detail in an image. 1 1 1 1 1 1 1 1 2 1 2 4 2 1 2 1 1/9 x 1/16 x 1 1
  • 15. Cont,. O Standard average of pixels calculated as follows O At the end of filtering the entire image is divided by 9. O So mxn is equal to 1/mn. Thus the coefficients pixels are equal, so the filter is called box filter.
  • 16. Non- Linear Spatial Filter(order Statistic Filter) MEDIAN FILTER: O This filter ordering the pixels by replacing the value of the center pixel with the value of rank list. The best know filter in this category is median filter. This is best for noise reduction. O This median filter is effective for impulse noise called as salt & pepper noise.
  • 17. MAX FILTER: OThe max filter also used for spatial filtering.This is used for finding the brightest points of an image. OExpression of max filter is R=max {Zk| k= 1,2,3,…….9}
  • 18. MIN FILTER: The min filter also used it is opposite of max that is find the dull points of an image. Expression of max filter is R=min{Zk| k= 1,2,3,…….9}
  • 19. Sharpening Spatial Filters O The sharpening spatial is to highlight the transactions in intensity . O There are many applications, such as electronic priming, medical images, military systems are used this sharpening technique.
  • 21. Foundation Sharpening filters that are based on two derivatives. 1.First derivatives. 2.Second derivatives. First derivative : O Must be zero for area of constant intensity. O Must be nonzero of intensity step or map. O Must be nonzero along ramp. (σ f/σ x) = f (x +1) – f (x).
  • 22. Second derivative O Must be zero in constant areas. O Must be nonzero at one end and other end of intensity ramp. O Must be zero along ramps.
  • 23. Image Sharpening(the Laplacian) O This approach uses the second order derivative for construct the filter mask. O The laplacian for the image function f(x,y) of two variable is, O The X direction, O For Y direction,
  • 24. By concluding the above three equations, Taking the derivative of an image results in sharpening of an image. The derivative of an image cam be computing by using gradient