I've put a windows version of the motion detection patch online now.
I've also put a windows/osx vesion of the median object in a separate
package with code. Right now, I use the Quicksort algorithm to sort
the pixel array. This might now be ideal for small arrays. Here's
the link: http://www.mat.ucsb.edu/~whsmith/vision.html
All the packages are at the bottom.