Till Point Processing2023 WM
Till Point Processing2023 WM
Till Point Processing2023 WM
Film photography
Time consuming
the image.
So, 0 f ( x, y) ∞
f(x,y) depends on
1. amount of illumination of the source on the object (i(x,y))
f ( x, y) i ( x, y ) r ( x, y ) l
where 0 i( x, y)
and l = gray level of the monochrome image
0 r ( x, y) 1
So, Lmin 0
Lmax L 1 ( say )
The interval [0, L 1] is defined as GRAYSCALE
l 0 black
l L 1 white
x, y vary from 0,1….. and are not the actual value of the physical coordinate
The number of bits (b) required to store a digitized image is
b M N k
L = 28
b=MxNx8
Spatial and gray level resolution
Spatial resolution :
It depends on sampling.
w
w
Spatial
resolution of
google earth
~ 65 cm
A B A B A B A B
Sub-sampling
Sub-sampled image is scaled to the original one
Gray level resolution :
gray level.
6
2 2 5
4
2 2 3
2 1
2 2
• Enhancement is needed for better representation
Raw image (1) from Hubble Tel. Raw image (2) from Hubble Tel.
Processed Image of Eagle Nebula
Image enhancement approach
Two categories
g( x , y ) T [ f ( x , y )]
g( x , y ) Processed image
g( x , y ) T [ f ( x , y )]
s T (r )
where s g( x , y )
r f ( x, y)
T is the gray level transformation function
Gray level transformation for contrast enhancement
Basic transformation functions for image enhancement
1. Linear (negative and identity transformation)
sr
Image negative
s L 1 r
For 8-bit image ; s 255 r
Log transformation
s c log(1 r )
Where c = constant; r0
Power law transformation
s cr
where
1
correction Dark levels have to be compressed
>1
Piecewise linear transformation function
Gray level slicing
h( rk ) nk
h( rk ) nk
p( rk )
n n
p(r ) 1
k
k
p(rk) =h(rk)/n
rk = 255
p(r ) 1
k
k
Uniformly distributed
histogram yields
Hence, histogram
processing requires the
stretching of gray level
uniformly over the entire
gray level range.
p(r)
r =1
Histogram equalization
p(s)
s
0 1
1. Requires the distribution of histogram peaks
uniformly over the entire gray level range
• Continuous and
r 1 White
s T (r ) ; 0 r 1
Let us require that the transformation
function T(r) should satisfy
2. 0 ≤ T(r) ≤ 1 for 0 ≤ r ≤ 1
s
T(r) Single valued
and
monotonically increasing
r
s T(r) Not single valued
T(r)
s
r
Transformation Transformation
from black white from white black
Hence the requirements:
1. T(r) should be single valued which ensures the
output image
ps ( s ) ds pr ( r ) dr
To make the histogram uniform:
Put, ps ( s ) 1
ds pr ( r ) dr
s r
ds p ( ) d
0 0
r
r
s p ( ) d T (r )
0
r
r
s T (r )
0
pr ( ) d
nk
pr ( rk ) , k 0, 1, ..... L 1
n
k
sk T ( rk ) p (r )
j 0
r j
k nj
sk T ( rk ) n
j 0
, for k 0, 1, ...., L 1
This will do the histogram equalization
AUTOMATICALLY
Histogram matching for recognition process
a)f(x,y)+g(x,y)
b)f(x,y)-g(x,y)
c) f(x,y) × g(x,y)
d)f(x,y) /g(x,y)
Recognition using histogram of a grayscale image
g( x , y ) f ( x , y ) ( x , y )
where
f ( x, y) Original image
( x, y) Noise
K
1
g( x , y )
K
g ( x, y)
i 1
i
1 K K
K i 1
fi
i 1
i
Take expectation either side
1 K K
E( g)
K i 1
E( fi )
i 1
E ( i )
E{ f i } f i
&
E { i } 0
E{ g( x, y )} f ( x, y )
K=8 K=16
K=64 K=128
Scaling of the gray levels during mathematical
operation
+ =
unscaled scaled
-
unscaled
=
scaled