Original sample from HTC as of 5/16/2014
Modified for foreground extraction based on depth.