Deep Learning-enabled Spatial Phase Unwrapping for 3D Measurement

Xiaolong Luo, Wanzhong Song, Songlin Bai, Yu Li, Zhihe ZhaoarXiv 2022 · DOI

Abstract

Fringe Projection Profilometry (FPP) is a cornerstone of high-precision 3D optical metrology, yet it remains vulnerable to phase unwrapping errors caused by shadows, noise, and surface discontinuities. This paper presents a hybrid Spatial Phase Unwrapping (SPU) scheme that integrates deep learning-based point classification with traditional path-following algorithms. By training a lightweight convolutional neural network to identify reliable pixels within a composite Phase-Modulation-Intensity (PMI) image, the system achieves unprecedented robustness and cross-hardware generalization. Experimental results demonstrate a significant reduction in failure rates (4.01%) and high measurement accuracy (0.033 mm RMSE) across diverse lighting conditions and optical setups.

Introduction

In Fringe Projection Profilometry (FPP), structured light patterns are projected onto an object to encode its topography into phase information. However, the captured phase is "wrapped" within a $[-\pi, +\pi]$ range, necessitating a spatial phase unwrapping (SPU) process to reconstruct a continuous 3D surface. Real-world scanning environments introduce significant challenges: shadows, low-reflectivity regions (e.g., dark hair), and sharp edges create unreliable data points. If these points are not accurately identified and masked, errors propagate throughout the entire unwrapped phase map, leading to catastrophic reconstruction failures.

Traditional SPU methods rely on hand-crafted quality maps and manual thresholding, which often fail in complex scenes. Conversely, end-to-end deep learning models frequently lack the interpretability and generalization required for varying hardware configurations. This work addresses these limitations by proposing a hybrid approach that combines the classification power of neural networks with the mathematical rigor of traditional unwrapping logic.

The Hybrid SPU Framework

The proposed method employs a two-stage hybrid scheme designed for both precision and robustness.

1. The PMI Composite and Point Detection

Rather than processing the phase map in isolation, the system constructs a three-channel PMI image consisting of the Wrapped Phase, Intensity Modulation (signal strength), and Background Intensity (brightness). This composite captures the physical characteristics of the scene more comprehensively than phase alone.

Figure 1: Overview of the hybrid 3D measurement pipeline, showing the transition from fringe projection to the final depth map via the Invalid Points Detection Network.

A lightweight deep convolutional neural network (a modified ERFNet) processes the PMI image to classify each pixel into three categories: background, unreliable object point, or reliable point. To improve performance in low-texture regions, the authors replaced standard max-pooling layers with mean-pooling, preserving more subtle signal variations.

2. Traditional Unwrapping with AI-Guided Masks

The network outputs a binary mask of reliable pixels. This mask guides a classic flood-fill algorithm, which performs the actual phase unwrapping. By using the AI as a "gatekeeper" rather than the primary unwrapper, the system ensures that the final 3D model adheres to physical principles while benefiting from the network's superior ability to detect noise and shadows.

Datasets and Generalization

The model was trained on a dataset of 10,538 images of dental casts captured with a specific FPP system ("System-A"). To evaluate its "zero-shot" capabilities, it was tested on three entirely different systems (Systems B, C, and D) utilizing various light sources (Laser, Infrared, White Light) and wavelengths (450nm to 820nm).

Figure 3: Visualization of the input data components (Background Intensity, Fringe Image, Wrapped Phase, etc.) and the resulting PMI images used for training and classification.

The use of intra-frame normalization—removing the top 1% of brightest pixels and scaling the remainder—allows the model to handle extreme lighting variations without retraining. This demonstrates that the learned PMI features are universal to the physics of light projection rather than being overfitted to specific hardware.

Key Results

The hybrid method demonstrates superior performance across several metrics:

  • Robustness: On complex datasets, the failure rate was reduced to 4.01%, significantly outperforming traditional MODU-sort methods (25.98%) and leading end-to-end deep learning models like HiPhase (10.76%).
  • Accuracy: The system maintained high precision, with an average Root Mean Square Error (RMSE) of approximately 0.033 mm.
  • Interpretability: Unlike "black-box" models, the output classification mask allows users to diagnose why specific regions were excluded, enhancing trust in the measurement process.

Conclusion

By decoupling the identification of unreliable data from the mathematical process of unwrapping, this hybrid approach provides a scalable and robust solution for 3D metrology. While the current implementation assumes local surface smoothness and may leave "holes" in highly unreliable regions, it represents a significant step toward universal, AI-enhanced optical scanning. Future research will focus on advanced hole-filling techniques to further refine the reconstructed surfaces.

Summary updated

BibTeX
@misc{luo2022deep,
  author = {Xiaolong Luo and Wanzhong Song and Songlin Bai and Yu Li and Zhihe Zhao},
  title = {{Deep Learning-enabled Spatial Phase Unwrapping for 3D Measurement}},
  year = {2022},
  eprint = {2208.03524},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2208.03524},
}
Figure