1. A method of detecting and tracking targets, comprising: capturing sequential images of a scene; performing motion detection analysis on pairs of the sequential images to detect targets within the scene; obtaining level set contours for the pairs of the sequential images, the level set contours corresponding with target boundaries of the detected targets; applying a spatial transformation to the level set contours to expand the level set contours to a lower energy level; performing the motion detection analysis for subsequent pairs of the sequential images using the expanded contours; and extracting time and motion analysis data from the level set contours for the subsequent pairs of sequential images to track the detected targets.