
10-6 Background Modeling and Foreground Detection for Video Surveillance
The corresponding definition of histon is given by
H
c
(g) =
X
X
x=1
Y
X
y=1
(1 + S(x, y))δ(I(x, y, c) − g) (10.3)
for 0 ≤ g ≤ l − 1 and c ∈ {R, G, B}
where, δ(·) is the digital impulse function, l is the number of quantized intensity levels, and
I(x, y, c) is the intensity of the pixel (x, y) on c
th
color channel.
Whether the pixel (x, y) belongs to the similar color sphere or not is given by the
similarity function S(x, y) (Eq. (10.4), used in Eq. (10.3)).
S(x, y) =
1 if d
T
(x, y) < S
th
0 otherwise
(10.4)
d
T
(x, y) =
x+⌊R/2⌋
X
p=x−⌊R/2⌋
y+⌊R/2⌋
X
q=y−⌊R/2⌋
s
X
c∈R,G,B
(I(x, y, c) − I(p, q, c))
2
(10.5) ...