Image Enhancement (1)
Image Enhancement (1)
Image Enhancement
• To process an image so that the result is
Image Enhancement in the Spatial more suitable than the original image for a
Domain specific application.
• Processing Techniques are very much
problem oriented
• Best technique for enhancing x-ray image
may not be best for microscopic images
1
2/3/2025
Point Operation
Mask Operation
2
2/3/2025
Point Processing
Image Histogram
• s=T(r)
• r: gray-level at (x,y) in original image f(x,y)
• H(rk) = nk • s: gray-level at (x,y) in processed image g(x,y)
• T is called gray-level transformation or mapping
• P(rk) = nk/n k = 0,……L-1
• Contrast Stretching: to get an image with higher contrast than the original image
• The gray levels below m are darkened and the levels above m are brightened .
Contrast Stretching
3
2/3/2025
u
0 L u
0 L
Input Image Transformation Output Image Input Image Transformation Output Image
v v
yb
yb
ya
a b u
a b u
4
2/3/2025
Thresholding
v
225
128 u
Input Image
Transformation Output Image
5
2/3/2025
Cancer Region
• If γ <1: maps a narrow range of dark input values into a wider range of output values.
Result of log transformation
• If γ >1:opposite of the above effect.
Dynamic range has been compressed from 0 to 6.2 with C=1 for display
purpose . • The process used to correct this power-low response phenomena is called gamma
correction.
6
2/3/2025
CRT devices have an intensity to voltage response that is a power function with
exponents varying from 1.8 to 2.5
7
2/3/2025
8
2/3/2025
Bit-plane Slicing
• Higher order bit planes of an image carry a
significant amount of visually relevant details.
9
2/3/2025
10
2/3/2025
Histogram Processing
Normalised Histogram
• Histogram is a discrete function formed by counting
the number of pixels that have a certain gray level
in the image .
• In an image with gray levels in [0,L-1], the histogram
is given by p(rk)= nk/n where:
– rk is the kth gray level, k=0, 1, 2, …, L-1
– nk number of pixels in the image with gray level rk
– n total number of pixels in the image
• Loosely speaking, p(rk) gives an estimate of the
probability of occurrence of gray level rk.
11
2/3/2025
12
2/3/2025
13
2/3/2025
An Example
• An input image PDF is as
14
2/3/2025
15
2/3/2025
Example:
• Assuming continuous intensity values,
suppose that intensity PDF
16
2/3/2025
• s0=1
• s1=3
• s2=5
It is desired to transform this histogram so that it will have the values
specified in the second column of table and histogram shown below • s3=6
• s4=7
• s5=7
• s6=7
• s7=7
17
2/3/2025
• G(z0)=0.00 • G(z0)=0.00 =0
• G(z1)=0.00 • G(z1)=0.00 =0
• G(z2)=0.00 • G(z2)=0.00 =0
• G(z3)=1.05 • G(z3)=1.05 =1
• G(z4)=2.45 • G(z4)=2.45 =2
• G(z5)=4.55 • G(z5)=4.55 =5
• G(z6)=5.95 • G(z6)=5.95 =6
• G(z7)=7.00 • G(z7)=7.00 =7
18
2/3/2025
19
2/3/2025
20