Professional Documents
Culture Documents
DIP Lec 11 Image Enhancement Mask Processing
DIP Lec 11 Image Enhancement Mask Processing
DIP Lec 11 Image Enhancement Mask Processing
23 32 11 52 4
50 17 2 86 21 Resultant image
41 6 87 3 23 14 17 16 21 19
1 1 1
23 12 16 4 9
1 1 1
1 1 1
1 1 1
1/9 X 1 1 1
1 1 1
Averaging filter
Averaging Filter
Averaging Filter
• Wieghted Averaging
• Example
Sharpening Spatial Filters
• objective of sharpening is to highlight fine
detail in an image or to enhance detail that
has been blurred
• Averaging filter (analogous to integration)
produces blurring effect
• So sharpening must be a differentiation
operation
• Enhances discontinuities
• Deemphasizes areas with slowly varying gray
levels
Sharpening Spatial Filters
– For x-direction
– For y-direction
– Finally we get
Sharpening Spatial Filter
• This equation can be written as a 3X3 mask
» OR
Sharpening Spatial Filter
• If the Diagonal neighbors also included
» OR
Sharpening Spatial Filter
• Filter for combined effect of Laplacian filtering
and adding/subtracting
Sharpening Spatial Filter
• Filter for combined effect of Laplacian filtering
and adding
»a
High boost filtering
• If we use Laplacian operator to get sharpened
image then
– OR
High boost filtering
First derivative for enhancement
• First derivative or gradient
• Magnitude
• Approximation
Gradient operator
Horizental edges vertical edges
• Sobel’s
• Robert’s
Sobel’s operator : example