optical flow
binarymillenium
June 2008
Licensed under the latest version of the GNU GPL
The red squares are the currently tracked points, initially they are in a grid but are not necessarily good points to track. If the area in a tracked point doesn't have much contrast or texture then the point will slide around and perhaps oscillate. If the random movement of the generated background texture is too great then this can also defeat the algorithm, it won't be able to track the movement. TBD- limit the movement of the tracked points to sensical values.
Source code: opticalflow
Built with Processing