Accuracy improvement in structured light system calibration using plane based residual error compensation