Hacker News new | ask | show | jobs
by tycho77 5311 days ago
To find optical flow, you first pick out a collection of sample points in frame A. What constitutes a good sample point depends on your specific algorithm, although generally speaking you pick "corners". In OpenCV, you can easily do this by calling cvGoodFeaturesToTrack().

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.

1 comments

This is very cool, thanks for that. Can we run this on a GPU? If not, how feasible would dense optical flow running on cpu be in terms of speed to convert short non-hd videos?