This is an example of segmenting the people from the background.

Original image:

Binary image after segmentation based on depth from the stereo head

The foreground segmented based on the binary image