Chapter 3.2 - Image Enhancement Histogram
Chapter 3.2 - Image Enhancement Histogram
of
32
• Spatial domain
image plane itself, directly process the intensity values of
the image plane
• Transform domain
process the transform coefficients, not directly process
the intensity values of the image plane
3
of Spatial Domain Process
32
g ( x, y ) T [ f ( x, y )])
f ( x, y ) : input image
g ( x, y ) : output image
T : an operator on f defined over
a neighborhood of point ( x, y )
4
of Spatial Domain Process
32
5
of Spatial Domain Process
32
Image negatives
s L 1 r
8
of Example: Image Negatives
32
Small
lesion
9
of Log Transformations
32
Log Transformations
s c log(1 r )
10
of Example: Log Transformations
32
11
of Power-Law (Gamma) Transformations
32
s cr
12
of Example: Gamma Transformations
32
13
of Example: Gamma Transformations
32
sr 1/2.5
14
of Example: Gamma Transformations
32
15
of Example: Gamma Transformations
32
16
of Piecewise-Linear Transformations
32
• Contrast Stretching
— Expands the range of intensity levels in an image so that it spans
the full intensity range of the recording medium or display device.
• Intensity-level Slicing
— Highlighting a specific range of intensities in an image often is of
interest.
17
of
32
18
of
Highlight the major
32
blood vessels and
study the shape of the
flow of the contrast
medium (to detect
blockages, etc.)
Image Enhancement
(Histogram Processing)
23
of
32
Contents
We will look at image enhancement
techniques working in the spatial domain:
– What is image enhancement?
– Different kinds of image enhancement
– Histogram processing
– Point processing
– Neighbourhood operations
24
of
32
25 Poor image enhance image
of
32
26 Poor image enhance image
of
32
27
of Enhancement
32 techniques
Spatial
domain Enhance
Poor image image E(r , c)
I(r , c)
Frequency
domain
applications
Gray levels
17
16
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
33 Number of pixels
32
of
34
of
32
35
of
32
36
of
32
of
32
39
Image Enhancement Examples
Images taken from Gonzalez & Woods, Digital Image Processing (2002)
of
32
40
Image Enhancement Examples (cont…)
Images taken from Gonzalez & Woods, Digital Image Processing (2002)
of
32
41
Image Enhancement Examples (cont…)
Images taken from Gonzalez & Woods, Digital Image Processing (2002)
of
32
42
Image Enhancement Examples (cont…)
43
of
32
Spatial & Frequency Domains
There are two broad categories of image
enhancement techniques
– Spatial domain techniques
• Direct manipulation of image pixels
– Frequency domain techniques
• Manipulation of Fourier transform or wavelet
transform of an image
For the moment we will concentrate on
techniques that operate in the spatial
domain
44
of
32
Image Histograms
The histogram of an image shows us the
distribution of grey levels in the image.
Massively useful in image processing,
especially in segmentation
Frequencies
Grey Levels
Images taken from Gonzalez & Woods, Digital Image Processing (2002)
of
32
45
Histogram Examples
Images taken from Gonzalez & Woods, Digital Image Processing (2002)
of
32
46
Histogram Examples (cont…)
Images taken from Gonzalez & Woods, Digital Image Processing (2002)
of
32
47
Histogram Examples (cont…)
Images taken from Gonzalez & Woods, Digital Image Processing (2002)
of
32
48
Histogram Examples (cont…)
Images taken from Gonzalez & Woods, Digital Image Processing (2002)
of
32
49
Histogram Examples (cont…)
Images taken from Gonzalez & Woods, Digital Image Processing (2002)
of
32
50
Histogram Examples (cont…)
Images taken from Gonzalez & Woods, Digital Image Processing (2002)
of
32
51
Histogram Examples (cont…)
Images taken from Gonzalez & Woods, Digital Image Processing (2002)
of
32
52
Histogram Examples (cont…)
Images taken from Gonzalez & Woods, Digital Image Processing (2002)
of
32
53
Histogram Examples (cont…)
Images taken from Gonzalez & Woods, Digital Image Processing (2002)
of
32
54
Histogram Examples (cont…)
55
of
32
Histogram Examples (cont…)
A selection of images and
Images taken from Gonzalez & Woods, Digital Image Processing (2002)
their histograms
Notice the relationships
between the images and
their histograms
Note that the high contrast
image has the most
evenly spaced histogram
56
of
32
Contrast Stretching
We can fix images that have poor contrast
by applying a pretty simple contrast
specification
The interesting part is how do we decide on
this transformation function?
57
of
32
Histogram Equalization
Spreading out the frequencies in an image
(or equalising the image) is a simple way to
improve dark or washed out images
The formula for histogram
equalization is given where sk T (rk )
– rk: input intensity k
of
32
58
Equalization Transformation Function
Images taken from Gonzalez & Woods, Digital Image Processing (2002)
of
32
59
Equalization Examples
1
60
of
32
Equalization Transformation Functions
of
32
61
Equalization Examples
2
62
of
32
Equalization Transformation Functions
of
32
63
Equalization Examples (cont…)
4
3
Images taken from Gonzalez & Woods, Digital Image Processing (2002)
of
32
64
Equalization Examples (cont…)
4
3
65
of
32
Equalization Transformation Functions
No