This is my MATLAB squash ball tracking program. A full description can be found on my blog.
Basically it turns clips of squash into this:
doItAll
is the main function. It should call everything else in the proper order. Please let me know if you used this code or even took a look at it. I'd love to discuss.