Lec10 Image Enhancment
Lec10 Image Enhancment
Image Enhancement:-
Principle Objective of Enhancement
2
2 Domains
Frequency Domain :
Techniques are based on modifying the Fourier transform
of an image
3
Good Images
For human visualization
4
Spatial Domain
g(x,y) = T[f(x,y)]
where:
f(x,y) is the input image
T is an operator on f defined
over some neighborhood of
(x,y)
5
Mask /Filter
6
Point Processing
Where
r = gray level of f(x,y)
s = gray level of g(x,y)
7
Contrast Stretching
8
Contrast Stretching
9
Mask Processing /Filtering
Used in techniques
Image Sharpening
Image Smoothing
10
Basic Gray Level Transformations
Linear function
Negative Negative
nth root Identity transformations
Output gray level, s
Log
nth power
Logarithm function
Log
Inverse-log transformation
Power-law function
Identity Inverse Log nth power
nth root transformations
Negative
nth root
Output intensities are
identical to input intensities.
Output gray level, s
Log
nth power
nth root
Negative transformation :
s = L – 1 –r
Output gray level, s
Log
nth power
Reversing the intensity levels of
an image.
Negative
s = c log (1+r)
nth root
c is a constant
r0
Log
Output gray level, s
nth power
Log curve maps a narrow
range of low gray-level values
in the input image into a
wider range of output levels.
14
LOG Function
15
Example of Logarithm Image
16
Inverse Logarithm Transformations
17
Inverse Logarithm Transformations
s = cr
c and are positive constants
Output gray level, s
If c = = 1, It becomes an
Identity function
Input gray level, r
Plots of s = cr for various values of
(c = 1 in all cases)
Used to expand the values of high pixels in an image while compressing the 18
darker-level values.
Gaama Correction
20
Effect of decreasing gamma
21
a b
Another Example c d
22
Contrast Stretching
(a)increase the dynamic range
of the gray levels in the image
23
Gray Level Slicing
a b 24
Bit-plane slicing
25
Example
Bit-plane Bit-plane
7 6
27