Moving pixels or background ones obtained by one
frame difference image are always mistaken for others
because of occluded or uncovered situations. So Twice
Frame Difference was proposed in [5], which can be defined
by the logic AND operation of two frame difference images.
In order to make all moving pixels continuous and filter
isolated pixels, moving regions are obtained by
morphological CLOSE operation.