Linear depth reconstruction for RGBD sensors