Documentos de Académico
Documentos de Profesional
Documentos de Cultura
Lecture #7
Log transformations:
s = clog(1+r) where, c is a constant, r>=0
Power-low transformations:
s=crγ , where c and γ are positive
constants
Gamma Corrections:
The exponent of the power law equation is referred to
as gamma. The process used to correct this power law
response phenomena is called gamma correction.
L/2 T(r)
n
Pr
( )
k = k
Where k =0,1,2,---L-1;n
n is the total
number of pixels, nk is the number of
pixels that have gray level rk.
A plot pr(rk) vs. rk is called histogram
The transformation (mapping) sk is
called histogram equalization
Local Enhancement:
Enhancement of image in a particular area to reduce
noise.
Image Arithmatic
Image subtraction, addition, multiplication, division
g (x, y) = f (x, y) – h (x, y)
g (x, y) = f (x, y) + h (x, y)
(0,0) y
W(1,-1) W(1,0) W(1,1)
Mask coefficients
x f(x+1,y-1) f(x+1,y)
Image f(x,y) f(x+1,y+1)
Pixels of image
section under mask
November 27, 2009 Advanced Digital Image Processing, Lecturer #7 17
Basics of Spatial Filtering
Moving the filter mask from point to point in an image At
each point (x,y), the response of the filter at that point is
calculated using a predefined relationship
The response is given by a sum of products of the filter
coefficients and the corresponding image pixels in the area
spanned by the filter mask.
Limitation near boundary:
to limit the excursions of the center of the mask to be at a
distance no less than (n-1)/2
padding by 0 or constant gray level, then stripped
1 1 1 1 1 1 2 1
× 1 1 1 × 2 4 2
9 1 1 1 16 1 2 1
3x3 smoothing filter masks
November 27, 2009 Advanced Digital Image Processing, Lecturer #7 19
Smoothing Spatial Filters
5 5 4 3 2 1 0 0 0 6 0 0 0 7 7 . .
Sine wave
Square wave
M −1
1
F (u ) =
M
∑ f ( x)[ cos2πux / M − j sin 2πux / M ]
x= 0
1 M − 1 N −1
F (u, v) = ∑ ∑
MN x = 0 y = 0
f ( x, y )e − j 2π ( ux / M + vy / N )
0 if (u , v ) = ( M / 2, N / 2)
H (u , v ) =
1 otherwise
G(u,v) = H(u,v) F(u,v)
1 ifD (u , v ) ≤ D0
H (u , v ) =
0 ifD (u , v ) > D0
[
D(u, v) = (u − M / 2) + (v − N / 2) 2
]
2 1/ 2
0 ifD (u , v ) ≤D0
H (u , v ) =
1 ifD (u , v ) >D0