A temporal sequence of images is acquired of a dynamic scene. Spatial
gradients are determined using filters. By taking advantage of the
sparseness of outputs of the filters, an intrinsic background image is
generated as median filtered gradients. The intrinsic background image is
then divided into the original sequence of images to yield intrinsic
foreground images. The intrinsic foreground images can be thresholded to
obtain a detection mask.