0% found this document useful (0 votes)
20 views37 pages

Chapter 2

Uploaded by

vedant0812k
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
20 views37 pages

Chapter 2

Uploaded by

vedant0812k
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 37

Module 2

IMAGE ENHANCEMENT

Spatial Domain filtering : The Mechanics of Spatial


Filtering, Smoothing Spatial Filters-Linear Filters-
Averaging filter, Order-Statistic Filters- Median filter,
Application of Median filtering for Noise removal
Sharpening Spatial Filters- The Laplacian, Unsharp
Masking and High boost Filtering, Using First-Order
Derivatives —The Gradient- Sobel, Prewitt and Roberts
Enhancement
 Qualitative
 That suits the purpose
 Applications: Numerous, medical
imaging, sports imaging,
entertainment

05/20/2024 2
Source: http://www.cse.iitd.ernet.in/~pkalra/col783/week-2.pdf
05/20/2024 3
05/20/2024 4
Background
 Spatial domain process
g ( x, y )  T [ f ( x, y )]

 where f ( x, y ) is the input image, g ( x, y ) is


the processed image, and T is an operator
on f, defined over some neighborhood of ( x, y )
 linear spatial filter performs a sum-
of-products operation between an
image f and a filter kernel, w.
 The kernel is an array whose size
defines the neighborhood of
operation, and whose coefficients
determine the nature of the filter.
SMOOTHING (LOWPASS)
SPATIAL FILTERS
 Smoothing (also called averaging)
spatial filters are used to reduce
sharp transitions in intensity
LOWPASS GAUSSIAN FILTER
KERNELS
image padding
 Zero padding
 mirror (also called symmetric) padding, in
which values outside the boundary of the
image are obtained by mirror-reflecting
the image across its border
 replicate padding, in which values
outside the boundary are set equal to the
nearest image border value
Order-statistic filters

 median filter: Replace the value of a pixel by


the median of the gray levels in the
neighborhood of that pixel
 Noise-reduction
UQP
UQP-Dec’19
UQP-May 19
Sharpening (High Pass) Spatial Filters
Laplacian as an isotropic second
derivative
Practical implementation
of Laplacian
Results of sharpening: Original,
Laplacian, scaled Laplacian, and
sharpened images
Unsharp
masking
• Blur the original image.
• mask = original – blurred
• output = original + mask
Sample
results of
unsharp
masking
a. Original c. a+b

b. Laplacian d. Sobel of a
e. Sobel smoothened with 5x5 g. a+f

f. Mask e * c h. Gamma correction of g

You might also like