During the Spring of 2008 I enrolled in the Magic++ studio taught by Zach Lieberman. Zach is the co-creator of openframeworks which is a tool set for artists and designers written in C++. During the course he taught us the ins and outs of the way openframeworks handles computer vision and motion tracking in preparation for our final project.
Motion history tracking.
Motion tracking.
Video masking.
Motion triggers.