Image Processing: Gaurav Gupta
Image Processing: Gaurav Gupta
Image Processing: Gaurav Gupta
Lecture 4
-Gaurav
Gupta
Today
Enhancement
Techniques
Spatial
Operates on pixels
Frequency Domain
Operates on FT of
Image
contd
Image Negative
Image Negative:
s=L1r
Log Transformation
s = c log(1+r)
c: constant
s = cr
C, : positive
constants
Gamma
correction
Contrast Stretching
contd
Example
Bit-Plane Slicing
Histogram Processing
Types of processing:
Histogram equalization
Histogram matching (specification)
Local enhancement
Histogram Equalization
k
sk T (rk )
j 0
nj
n
pr ( r j )
j 0
Method
ni
v G ( z ) p z ( w)
0
i 0 n
pz: specified desirable PDF for output
z=G-
Image Smoothing or
Averaging
A noisy image:
g ( x, y ) f ( x , y ) n ( x , y )
1
g ( x, y )
M
g ( x, y )
i 1
Example
Spatial Filtering
g(x, y)
w(s,t) f (x s, y t)
sa tb
R w1 z1 w2 z 2 ... w9 z9
(for a 3 x 3 filter)
Neighborhood Averaging
Non-linear Filter
Sharpening Filters
Derivatives
First derivative
f
f (x 1) f (x)
x
Second derivative
2 f
f (x 1) f (x 1) 2 f (x)
Observations
ThE eNd