Professional Documents
Culture Documents
Histogram Equalization: Ece/Vt
Histogram Equalization: Ece/Vt
ECE/VT
Histogram Specification
• How can we accomplish this?
specified
ECE/VT
Approach (Histogram Specification)
• An image r -> an image z
• Histogram: pr(r) -> pz(z) (specified) z = G −1 (s ')
z
s ' = G ( z ) = ( L − 1) ∫ pz (u )du
r
s = T (r ) = ( L − 1) ∫ pr (u )du 0
0
KEY POINT: s = s’
z = G −1 (s ') = G −1 (T (r )) = G −1 (s)
ECE/VT
Algorithm (Histogram Specification)
• Step 1: Find histogram of input image px(i),
and find histogram equalization mapping:
j
Fx ( j ) = ( L − 1)∑ px (i ) j
i =0
Fx ( j ) = ∑ px (i ) (L-1)
• Step 2: Specify the desired histogram pz(i), i =0
ECE/VT
An Example
q
(2) G( zq ) = ( L − 1)∑
i =0
p z ( zi ) (3) mapping
ECE/VT
Histogram Specification
specified
G(z)
G-1(s)
ECE/VT
Matlab IPT – histeq()
J = histeq(I, hgram)
ECE/VT