ImageProcessing3 ImageEnhancement (HistogramProcessing)
ImageProcessing3 ImageEnhancement (HistogramProcessing)
Image Enhancement
(Histogram Processing)
s cr
13
of
32
Gamma Correction Examples
14
of
Histogram Processing - Image
32
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
15
Histogram Examples
Images taken from Gonzalez & Woods, Digital Image Processing (2002)
of
32
16
Histogram Examples (cont…)
Images taken from Gonzalez & Woods, Digital Image Processing (2002)
of
32
17
Histogram Examples (cont…)
Images taken from Gonzalez & Woods, Digital Image Processing (2002)
of
32
18
Histogram Examples (cont…)
Images taken from Gonzalez & Woods, Digital Image Processing (2002)
of
32
19
Histogram Examples (cont…)
Images taken from Gonzalez & Woods, Digital Image Processing (2002)
of
32
20
Histogram Examples (cont…)
Images taken from Gonzalez & Woods, Digital Image Processing (2002)
of
32
21
Histogram Examples (cont…)
Images taken from Gonzalez & Woods, Digital Image Processing (2002)
of
32
22
Histogram Examples (cont…)
Images taken from Gonzalez & Woods, Digital Image Processing (2002)
of
32
23
Histogram Examples (cont…)
Images taken from Gonzalez & Woods, Digital Image Processing (2002)
of
32
24
Histogram Examples (cont…)
25
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
26
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?
27
of
32
Histogram Equalisation
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 s T ( r )
equalisation is given where k k
k
.
.
.
7
s7 T ( r7 ) 7 pr ( rj ) 7.00
j 0
Images taken from Gonzalez & Woods, Digital Image Processing (2002)
of
32
30
Equalisation Transformation Function
Images taken from Gonzalez & Woods, Digital Image Processing (2002)
of
32
31
1
Equalisation Examples
32
of
32
Equalisation Transformation Functions
of
32
33
2
Equalisation Examples
34
of
32
Equalisation Transformation Functions
of
32
35
4
3
Equalisation Examples (cont…)
Images taken from Gonzalez & Woods, Digital Image Processing (2002)
of
32
36
4
3
Equalisation Examples (cont…)
37
of
32
Equalisation Transformation Functions