Calibration of a camera–projector measurement system and error impact analysis