Title: EE 4780
1EE 4780
2Image Enhancement
- The objective of image enhancement is to process
an image so that the result is more suitable than
the original image for a specific application. - There are two main approaches
- Image enhancement in spatial domain Direct
manipulation of pixels in an image - Point processing Change pixel intensities
- Spatial filtering
- Image enhancement in frequency domain Modifying
the Fourier transform of an image
3Image Enhancement by Point Processing
4Image Enhancement by Point Processing
5Image Enhancement by Point Processing
6Image Enhancement by Point Processing
Matlab exercise
7Image Enhancement by Point Processing
8Image Enhancement by Point Processing
9Image Enhancement by Point Processing
10Image Enhancement by Point Processing
255
0
11Histogram Specification
- Intensity mapping
- Assume
- T(r) is single-valued and monotonically
increasing. -
- The original and transformed intensities can be
characterized by their probability density
functions (PDFs)
12Histogram Specification
- The relationship between the PDFs is
Cumulative distribution function of r
Histogram equalization!
13Image Enhancement by Point Processing
14Image Enhancement by Point Processing
- Histogram Equalization Example
- Intensity 0 1 2 3
4 5 6 7 - Number of pixels 10 20 12 8 0 0
0 0 - Intensity 0 1 2 3
4 5 6 7 - Number of pixels 0 10 0 0 20 0
12 8
15Image Enhancement by Point Processing
16Histogram Specification
17Histogram Specification
18Histogram Specification
19Histogram Specification
20Local Histogram Processing
- Histogram processing can be applied locally.
21Image Subtraction
The background is subtracted out, the arteries
appear bright.
22Image Averaging
Corrupted image
Original image
Noise
Assume n(x,y) a white noise with mean0, and
variance
If we have a set of noisy images
The noise variance in the average image
is
23Image Averaging
24Spatial Filtering
A low-pass filter
A high-pass filter
25Spatial Filtering
Sort (10 10 10 20 25 75 85 90 100)
Original signal
100 100 100 100 10 10 10 10 10
Noisy signal
100 103 100 100 10 9 10 11 10
Filter by 1 1 1/3
101 101 70 40 10 10 10
Filter by 1x3 median filter
100 100 100 10 10 10 10
26Spatial Filtering
- Median filters are nonlinear.
- Median filtering reduces noise without blurring
edges and other sharp details. - Median filtering is particularly effective when
the noise pattern consists of strong, spike-like
components. (Salt-and-pepper noise.)
27Spatial Filtering
SaltPepper noise added
Original
3x3 averaging filter
3x3 median filter
28Spatial Filtering
29Wiener Filter
Noisy image
Original image
Noise
Wiener Filter
Noise variance
Signal variance
30Wiener Filter
is estimated by
Since variance is nonnegative, it is modified as
Estimate signal variance locally
N
N
31Wiener Filter
Denoised (3x3neighborhood) Mean Squared Error is
56
Noisy, ?10
wiener2 in Matlab
32Spatial Filtering
- Gradient Operators
- Averaging of pixels over a region tends to blur
detail in an image. - As averaging is analogous to integration,
differentiation can be expected to have the
opposite effect and thus sharpen an image. - Gradient operators (first-order derivatives) are
commonly used in image processing applications.
33Spatial Filtering
These are called the Sobel operators
34Spatial Filtering
- Laplacian Operators
- Laplacian operators are second-order derivatives.
35Spatial Filtering
36Spatial Filtering
- High-boost or high-frequency-emphasis filter
- Sharpens the image but does not remove the
low-frequency components unlike high-pass
filtering
37Spatial Filtering
- High-boost or high-frequency-emphasis filter
- High pass Original Low pass
- High boost (Original) K(High pass)
38Spatial Filtering
A high-pass filter
A high-boost filter
39Spatial Filtering
- High-boost or high-frequency-emphasis filter
40Spatial Filtering