Double-Shot 3D Shape Measurement with a Dual-Branch Network for Structured Light Projection Profilometry

Mingyang Lei, Jingfan Fan, Long Shao, Hong Song, Deqiang Xiao, Danni Ai, Tianyu Fu, Ying Gu, Jian Yang · DOI

TL;DR

PDCNet is a novel dual-branch neural network that combines the global precision of fringe projection with the local robustness of speckle patterns to achieve high-accuracy 3D shape measurement. By leveraging a Transformer-CNN hybrid architecture and a bimodal Gaussian "mixture head," the system effectively eliminates fringe ambiguity and produces remarkably sharp object boundaries, even in complex, occluded scenes.

What Problem Does This Paper Address?

Structured Light (SL) projection is a cornerstone of non-contact 3D measurement. Traditionally, researchers choose between two flavors:

  1. Fringe Projection Profilometry (FPP): Uses periodic sinusoidal patterns. It’s highly precise but suffers from "fringe order ambiguity"—if an object is occluded or has a sudden depth change, the system can't tell which "cycle" of the pattern it's looking at.
  2. Speckle Projection Profilometry (SPP): Uses random dot patterns. It’s great for local matching and avoids ambiguity, but it lacks global context and generally offers lower reconstruction accuracy.

Most deep learning approaches try to solve 3D reconstruction using a single shot of either fringe or speckle. However, single-shot methods often fail in "occluded scenes" where objects overlap. This paper proposes a double-shot approach, using one of each pattern to get the best of both worlds.

Methods

The authors introduce PDCNet (Parallel Dual-branch CNN-Transformer Network), which processes a fringe image and a speckle image simultaneously through two specialized pipelines:

  • The Transformer Branch (Fringe): Since fringe patterns are periodic and global, the authors use a Transformer branch (specifically Lite Transformer Blocks) to capture long-range dependencies and global perception.
  • The CNN Branch (Speckle): Speckle patterns rely on local texture. A CNN branch with Hierarchical Pooling Blocks (HPB) is used to extract these fine-grained local details.
  • DAAM (Double-stream Attention Aggregation Module): Instead of simply stacking the features, this module uses 1D horizontal and vertical global pooling to share spatial information across branches, dynamically retaining the most important local and global representations.
  • Adaptive Mixture Density Head: This is a departure from standard "regression" (which predicts a single depth value). At object boundaries, a single prediction often results in "blurred" edges. This head predicts a bimodal Gaussian distribution, allowing the model to represent both the foreground and background at a discontinuity, then adaptively selecting the correct one.
  • Auxiliary Saliency Path: A side-network trained to identify the object vs. the background, helping the main network focus its "attention" on the target.

Datasets

The researchers found existing datasets lacking in complexity (specifically regarding occlusions), so they created their own:

  • Real-World Dataset: 1,000 pairs of fringe/speckle images captured using an industrial camera and a DLP projector, featuring various plaster models, toys, and boxes in both occluded and non-occluded setups.
  • Virtual Dataset: 200 image pairs generated using Blender to test the model's generalization capabilities.
  • Ground Truth: Generated using a high-accuracy, multi-step Gray-code-based phase unwrapping method.

Key Insights and Ideas

  • Complementarity is Key: The "aha moment" is that speckle patterns provide the "unique ID" that fringe patterns lack. The speckle distribution remains invariant even when depth changes, acting as an anchor to resolve fringe ambiguity.
  • Transformers for Fringes, CNNs for Speckles: The architecture mirrors the physics of the patterns. Transformers excel at the "global ruler" nature of fringes, while CNNs excel at the "local fingerprint" nature of speckles.
  • The "Edge" Case: Standard depth regression averages values at object boundaries, causing "bleeding" or "halos." By predicting two possible depth modes (bimodal Gaussian) and choosing the most likely one, the network maintains razor-sharp edges.

Key Results

PDCNet significantly outperformed state-of-the-art single-shot methods (like FOA-Net and PCTNet) across all metrics:

  • Accuracy: On the real-world dataset, PDCNet achieved an End Point Error (EPE) of 0.98, compared to 1.37–1.97 for competing models.
  • Robustness to Occlusion: In scenes where objects overlapped, the error for other methods spiked (EPE ~1.9), while PDCNet remained stable (EPE ~1.1).
  • Boundary Precision: Qualitative results show that the Adaptive Mixture Head produces significantly cleaner object silhouettes compared to standard regression or unimodal heads.

Limitations and Future Work

While the "double-shot" approach is highly accurate, it does require two images, which slightly reduces temporal resolution compared to single-shot methods (though it is still much faster than traditional multi-step phase shifting).

The authors suggest that future work should focus on SL image feature decomposition—essentially teaching the network to better separate the projected pattern information from the underlying scene texture to improve performance in even more diverse environments. They also see potential for this dual-branch architecture in other multi-modal tasks, such as fusing MRI and PET scans.

Summary updated

BibTeX
@misc{lei2024double,
  author = {Mingyang Lei and Jingfan Fan and Long Shao and Hong Song and Deqiang Xiao and Danni Ai and Tianyu Fu and Ying Gu and Jian Yang},
  title = {{Double-Shot 3D Shape Measurement with a Dual-Branch Network for Structured Light Projection Profilometry}},
  year = {2024},
  eprint = {2407.14198},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2407.14198},
}
Figure