Video tracking in complex scenes for surveillance applications