Various methods of separating foreground from background.
Making Connections, Camera data (Max)
By Andrew Benson
https://cycling74.com/2009/10/26/making-connections-camera-data/
cv.jit
By Jean-Marc Pelletier
cv.jit.binedge
Extract edge pixels from a binary image
cv.jit.floodfill
Isolate a single connected component from a binary image
(a sock-monkey)
Kinect (depth camera)
Synapse http://synapsekinect.tumblr.com
by Ryan Challinor
(Using jit.synapse from: http://synapsekinect.tumblr.com/post/6307752257/maxmsp-jitter – Can you find the sock monkey?)