Optical flow calculation using the gradient-based method devised by Marc Proesmans.
Look at the beginning of the cpp file for instructions on how to compile and call the proesmans function from MATLAB.
The algorithm is described and used in a couple of journal papers, look in the cpp file to find out more.
Incidentally, this also works as a good example on how to call c and cpp files from MATLAB.
Thanks for the great submission, enjoyed trying the gradient based approach.
Some other optical flow methods and examples can be found at this link: "http://www.mathworks.com/discovery/optical-flow.html"
Added copyright and fixed small typos