Stable version of Kinect Thresholding