In this program, I implemented an optical flow algorithm to perform camera tracking over a short video of a ball being bounced around. I wrote the program in MATLAB for a computer vision course.
For each video frame, the computer reads the pixels in a defined square, and then it looks at the next frame. It looks within a search area for those pixels. To help find relevant information, the computer does not compare pixel value, but instead compares histogram values separated into 200 "buckets". This helps because the objects are moving and rotating, but colors still need to be found.
This was a very challenging project, but my result is satisfactory. I received help from several classmates and the course teaching assistant.