Recognize possible collision trajectories by vehicles, using a video taken from a camera directed toward the rear of the direction of driving.
Design an algorithm for the system using MATLAB.