Region labeling for surveillance video: techniques and application