First, we are going to demonstrate the method described by Horn and Schunck. A good example of its usage can be found if you type
vision.OpticalFlow System object in the search box on the top-right corner of your MATLAB window. The help page for the object includes an example based on the
viptraffic.avi video. In this example, we will show some alternative steps for the same process, using a different video as input.
Since we will be using the Computer Vision System Toolbox for the optical flow algorithms, we might as well use another one of the videos included in its demos. The video is called
atrium.avi and shows several people walking in an atrium in arbitrary trajectories. Our ...