149 points · by mars · 14y ago · 15 comments
It's an impressive program. Simon deserves a lot of credit and gratitude for giving it to the world.
You then search for those same sample points in the successive frame B, and end up with a collection of vectors that probably represent the motion of each point. Using OpenCV, this is usually done with cvCalcOpticalFlowPyrLK().
Tweening is basically just interpolation.
Also optical flow really doesn't handle occlusions very well, so if one thing obscures another you'll get lots of artifacts.