Statistics for Adaptive Fringe Projection and Error-Compensated Calibration for Compact 3D Shape-Measurement Systems