Algorithms for Motion Tracking? 32
Keith Handy asks: "I seem to be unable to find algorithms and/or open source programs that will do accurate motion tracking, i.e. you mark a point on an object in frame 36, and the program can follow that point on that object through all the frames following it. This is useful not just for analyzing motion, but also for interpolating/extrapolating frames of video -- so if you had something at only 15 fps, you could generate inbetween frames (which are not just crossfades between the frames) and actually smooth the effect of the motion. Not something so complicated as to get into actual physics -- just something that will indicate where (in 2D only) that part of the object has moved from one frame to the next, for any given point in the whole picture. And for that matter it doesn't have to be 100% accurate, just any means of generating a reasonable motion-flow map." This doesn't strike me as an easy algorithm to develop, but are there any papers online or offline, that might describe an algorithm that can at least track objects in an image?
"In other words, I want something that does this,
in order to write code that will do things like this and this. I already know how to write code to blur and warp images, so to be able to track motion would give me (and you) the same capabilities as these expensive plug-ins.
Anyone know any other resources, directions, or existing code I could look into to find out more about how this works, so I can incorporate it into my own programming instead of paying hundreds or thousands of dollars for limited, proprietary use of the technology?"
Book (Score:5, Informative)
Video compression (Score:3, Informative)
Which is exactly what MPEG does... very crudely. The MPEG solution seems to be to compare a block (8x8?) of pixels with every block in the previous frame.
The fact that MPEG doesn't use anything more sophisticated than this suggests to me that there probably aren't any algorithms which consistently work better.
Re:Video compression (Score:2, Informative)
openCV (Score:5, Informative)
and a yahoo groups support forum thing here [yahoo.com]
the original intel pages are here [intel.com]
cheers,
bjpirt
KLT Feature Tracker (Score:5, Informative)
An implementation can be found here:
http://vision.stanford.edu/~birch/klt/
just use the MPEG algorithm (Score:4, Informative)
Once you have done this for every block in the original frame, you have a set of motion vectors from which you can construct an intermediate frame.