Image Enhancement in Spatial Domain
Image Enhancement in Spatial Domain
Image Enhancement in Spatial Domain
IMAGE ENHANCEMENT IN
SPATIAL DOMAIN
By: Ehsan Khoramshahi
Definitions
Linear Transformations:
S=a*r+b
Linear Transformation
s 1 .2 * r
s 0 .5 * r
Negative
s 255 r
Other forms
Non-linear Transformation
h(rk ) nk
Histogram
Histogram
Histogram Equalization
Math formulation:
Notation
Application:
Noise Reduction
Astronomy
Surveillance
Background estimation
Example: background estimation by Image
Averaging
Spatial Filtering
M4 M5 M6
P11 P12 P13 P14
M7 M8 M9
Mask(w)
Original Image(f)
Response to Mask
Smoothing Filters
Median
Principal function: to force points with distinct gray
values to be more like their neighbors.
Very suitable for eliminate salt and pepper noise
Max
Min
Mode
They all find an ordering-related elements in a
defined neighborhood and replace it with the
original pixel.
Order-statistics Filters Example
Formula
IMAGE ENHANCEMENT IN
FREQUENCY DOMAIN
Background
Inverse
Components of Fourier Transform are
complex numbers (Real and Imaginary Part)
So we have two Images:
Magnitude or Spectrum of Transform
Phase Angle or Phase spectrum of Transform
Fourier Cont.
Fourier
Magnitude
Phase Angle
Application of DFT
Filtering: Low-pass and High-pass
Convolution in Spatial Domain is a simple
multiplication in Frequency Domain
So Mask filters are easier in Frequency under
the condition that we have specialized
hardware which can run DFT very fast.