Contextual Combination of Appearance and Motion for Intersection Videos with Vehicles and Pedestrians