
9-6 Background Modeling a nd Foreground Detection for Video Surveillance
Algorithm 9.1 - DGS Approximation Pruning
Input: x ∈ R
n
{estimations}; k {the sparsity number}; J
y
{task number}; J
b
{block size};
N
x
∈ R
n×τ
{values of x’s neighbors}; w ∈ R
n×τ
{weights for neighbors}; τ {neighbor
number}
J
x
= J
y
J
b
;x ∈ R
n
is shaped to x ∈ R
n
J
x
×J
x
N
x
∈ R
n×τ
is shape to N
x
∈ R
n
J
x
×J
x
×τ
;
for al l i = 1, ...,
n
J
x
do
Combing each entry with its neighbors
z(i) =
J
x
X
j=1
x
2
(i, j) +
J
x
X
j=1
τ
X
t=1
w
2
(i, t)N
2
x
(i, j, t)
end for
Ω ∈ R
n
J
x
×1
is set as indices corresponding to the largest k/J
x
entries of z
for al l j = 1, ..., J
x
do
for al l i = 1, ...,
k
J
x
do
Obtain the final list
Γ((j − 1)
k
J
x
+ i) = (j − 1