A flexible stereo calibration for a structured-light profilometer