DIP Lecture 9
DIP Lecture 9
DIP Lecture 9
2
Example
3
Example
Dark image
Components of
histogram are
concentrated on
the low side of
the gray scale.
Bright image
Components of
histogram are
concentrated on
the high side of
the gray scale.
4
Example
Low-contrast image
histogram is
narrow and
centered toward
the middle of the
gray scale
High-contrast image
histogram covers
broad range of the
gray scale and the
distribution of pixels
is not too far from
uniform, with very
few vertical lines
being much higher
than the others
5
Contrast stretching through histogram
6
7
Digital Image Processing
Lecture 9:
Image Enhancement in Spatial Domain
Spatial Filtering: Order statistic filtering
and Image Sharpening
where a (m 1) / 2, b (n 1) / 2
x 0, 1, 2,......, M 1, y 0, 1, 2,......, N 1,
04/05/20 Digital Image Processing 10
Basics of spatial filtering
Given the 3×3 mask with coefficients: w1, w2,…, w9
The mask cover the pixels with gray levels: z1, z2,…, z9
Smoothed by Smoothed by
5 x 5 box filter 9 x 9 box filter
Smoothed by Smoothed by
15 x 15 box filter 35 x 35 box filter
Isolated point