Reliable fusion of ToF and stereo depth driven by confidence measures