This code implements the algorithm from [1] up to but not including section 3.
This code is tested under octave (www.ocave.org) and with a small ammount of mod. will run under matlab.
You will need to alter the file 'grabFrame.m' to gram an image from a digi. cam.
Covered by GPL. check the file "GPL.txt"

Authors : Matt Flax <flatmax@ieee.org> and Regina

[1] M. Yamada, K. Ebihara, and J. Ohya. 
"A New Robust Real-time Method for Extracting Human Silhouettes from Color Images."
In International Conference on Automatic Face and Gesture Recognition, 1998.