
20-16 Background Modeling and For eground Detection for Video Surveillance
(a) input data and segmentation
ground truth
(b) 3x3 major-
ity filter
(c) 31x31 ma-
jority filter
(d) 31x31
weighted ma-
jority filter,
σ = 0.1
FIGURE 20.4 Comparison of post-processing steps at the example of frame # 1069 of traffic sequence
from changedetection.net [12]
The grid allocated for this purpose is of size n × 1. The segmentation mask pointed
to by mask in Listing 20.2 is a pitched 2D float array. The memory pitch is stored in
maskPitch and the number of columns in maskCols. The array is pitched, i.e. every
maskCols*sizeof(float) bytes are aligned with a certain memory pitch. ...