A Method to Compensate for the Errors Caused by Temperature in Structured-Light 3D Cameras