
22-6 Background Modeling and Foreground Detection for Video Surveillance
FIGURE 22.1 Output of the temporal difference after applying a threshold (
c
(2010) Elsevier).
FIGURE 22.2 The background model is gradually built as moving objects change their location
(
c
(2010) Elsevier).
requires an array with potentially high dimension for each pixel. Instead, we quantize the
100-frame window into 4 intervals, and keep a counter CC
k
(i, j), k ∈ {1, . . . , 4}, for each
interval for pixel (i, j). The approach is illustrated in Fig. 22.3. Between frames 1 and 25,
the counter CC
1
is increased each time the pixel’s state changes, between frames 26 to 50
the coun