arXiv:2610.33988cs.CVOct 2026

Manuscript Offprint

arXiv:2610.33988

Hybrid Mamba-Transformer Network for Single-Shot 3D Reconstruction from Fringe Patterns

Xinjie Zhou, XiaoLei Li

Reconstruction from Fringe Patterns

Xinjie Zhou ∗a^{*a}, XiaoLei Li ∗∗b^{**b}

a. Aulin College, Northeast Forestry University, Harbin, 150040, China

b. School of Mechanical Engineering, Hebei University of Technology, Tianjin, 300130, China

*Corresponding author: zhouxinjie@nefu.edu.cn;

Corresponding author: lixiaolei_hebut@163.com

Abstract: Deep learning facilitates rapid single-shot three-dimensional (3D) reconstruction using fringe projection profilometry (FPP), but recovering accurate surface height from a single high-frequency fringe image remains challenging because both long-range spatial consistency and fine geometric details must be preserved. Convolutional networks are limited in modeling long-range dependencies, whereas window-based Transformers establish global interactions only progressively with increasing depth. To address these limitations, a hybrid Mamba – Transformer network is proposed for fringe-to-height regression. The network adopts a Swin-based U-shaped architecture and introduces visual state-space modeling at the intermediate-resolution encoder stage. An axial – dilated vision state-space (ADVSS) block is further developed to enhance pre-scan feature encoding through local, dilated, and axial depth-wise convolutions while retaining four-directional selective scanning. This design combines linear-complexity long-range modeling with direction-aware preservation of local fringe structures. Experiments on a publicly available FPP dataset show that the proposed method outperforms hNet, SwinConvUNet, UHRNet, and HiDNet in mean absolute error(MAE), root-mean-square error (RMSE), absolute relative error, and structural similarity index measure (SSIM). Using only one deformed fringe image, the proposed method achieves an RMSE of 0.548 mm and an SSIM of 0.9985, reducing RMSE by 65.2% and 59.6% relative to UHRNet and HiDNet, respectively. These results demonstrate the effectiveness of combining selective state-space modeling with hierarchical window-based attention for accurate single-shot FPP reconstruction.

Keywords: 3D reconstruction; Fringe Projection Profilometry; single-shot fringe-to-depth; Vision Mamba; Swin Transformer; hybrid Mamba–Transformer

1. Introduction

Fringe projection profilometry (FPP) is a well-established optical metrology technique for noncontact, high-precision three-dimensional (3D) surface measurement [1−3][1-3]. In a typical FPP system, sinusoidal fringe patterns are projected onto the measured object, and the phase distortions caused by the surface topography are analyzed to recover depth through geometric triangulation. Conventional FPP methods achieve high measurement accuracy using multistep phase shifting and temporal phase unwrapping [4][4]. However, the acquisition of multiple sequential fringe images makes these methods susceptible to motion-induced errors and limits their applicability to dynamic scenes and real-time measurements.

Single-shot FPP has been developed to overcome this limitation by recovering 3D geometry from only one fringe image. Traditional single-shot approaches, including Fourier transform profilometry (FTP) [5]^{[5]} and other spatial phase-demodulation techniques, are often affected by spectral leakage, frequency aliasing, and phase errors near discontinuities and geometrically complex regions. In recent years, deep learning has provided an alternative solution by learning a direct mapping from a single fringe pattern to phase or depth [6−11][6-11], thereby reducing or eliminating the need for explicit phase demodulation and unwrapping. Most existing methods rely on convolutional neural networks (CNNs), which are effective at extracting local spatial features. Nevertheless, convolution is inherently a local operation, and its effective receptive field expands only gradually with network depth. As high-frequency fringe patterns contain periodic structures extending across the entire field of view, insufficient long-range interaction may lead to inconsistencies in depth recovery, particularly in regions containing discontinuities, steep slopes, shadows, or low fringe modulation.

Transformers [12] provide a potential solution by modeling long-range dependencies through self-attention. However, the quadratic computational and memory complexity of global self-attention with respect to the number of image tokens restricts its application to high-resolution optical images. The Swin Transformer [13] alleviates this problem by alternately applying window-based and shifted-window multi-head self-attention (W-MSA and SW-MSA), resulting in approximately linear computational complexity while enabling information exchange across neighboring windows. Swin-based U-Net architectures have subsequently been introduced into single-shot structured-light profilometry and fringe-phase retrieval [14,15], demonstrating improved contextual modeling compared with purely convolutional networks. Despite these advantages, interactions between distant image regions must still be established progressively through multiple shifted-window blocks. Consequently, the effective receptive field may remain insufficient for maintaining image-wide consistency in high-resolution fringe images. Moreover, conventional square attention windows do not explicitly exploit the pronounced directional and periodic characteristics of projected fringe patterns.

State-space models (SSMs) [16] have recently emerged as computationally efficient alternatives for long-range dependency modeling. Mamba combines an input-dependent selective mechanism with linear-complexity sequence scanning. Its vision-oriented variants, such as VMamba, Vision Mamba (Vim), and VM-UNet [17-19], extend this mechanism to images through bidirectional or multidirectional scanning. These characteristics make visual SSMs particularly attractive for modeling the long-range continuity of fringe patterns. However, directly employing a pure Mamba encoder may not fully satisfy the requirements of high-precision fringe-to-depth regression. Recovering metric depth from a single high-frequency fringe image, for example, one containing 128 vertical fringes, requires both long-range consistency and accurate preservation of local geometric details. Although multidirectional selective scanning can efficiently propagate global information, it may insufficiently emphasize fine structures around object boundaries, steep surface variations, shadowed areas, and low-modulation regions. Conversely, Swin Transformer blocks provide effective hierarchical feature refinement but require multiple stages of shifted-window propagation to establish global relationships. Therefore, neither a purely window-based Transformer nor an entirely SSM-based architecture provides an optimal balance between global dependency modeling and local-detail preservation for this task.

Hybrid Mamba – Transformer architectures have recently demonstrated that selective state-space modeling and attention can provide complementary global and local representations [20−22][20-22]. Motivated by this observation, this study proposes a hybrid Mamba–Transformer network for single-shot fringe-to-depth reconstruction. The proposed network retains a Swin-based U-Net architecture and incorporates visual state-space (VSS) blocks into intermediate encoder stages. At these stages, the reduced spatial resolution offers a favorable balance between computational efficiency and long-range feature modeling. The VSS blocks employ linear-complexity multidirectional selective scanning to propagate fringe information over extended spatial ranges and improve global consistency. Meanwhile, the Swin-based components perform hierarchical local aggregation and facilitate the preservation and reconstruction of fine geometric details.

To further adapt selective state-space modeling to the characteristics of fringe images, an axial- and dilation-aware visual state-space (ADVSS) module is developed. Before multidirectional selective scanning, axial convolutions enhance orientation-dependent features along the horizontal and vertical directions, while dilated convolutions enlarge the local receptive field and capture multiscale spatial structures. This front-end enhances the directional and periodic features of high-frequency fringes without modifying the underlying selective-scan mechanism. Consequently, the proposed architecture combines the efficient global modeling capability of Mamba with the local inductive bias and hierarchical feature representation of the Swin Transformer.

The main contributions of this study are summarized as follows:

  1. A hybrid Mamba–Transformer architecture is proposed for direct depth reconstruction from a single high-frequency fringe image. VSS blocks are incorporated into selected encoder stages of a Swin-based U-Net to balance long-range dependency modeling, local-detail preservation, and computational cost.

  2. An ADVSS module is developed to adapt visual state-space modeling to the directional and periodic characteristics of fringe patterns. Axial and dilated convolutions enhance orientation-sensitive and multi-scale local features before multi-directional selective scanning.

The proposed method is comprehensively evaluated against hNet, SwinConvUNet, UHRNet, and HiDNet under a unified training and evaluation protocol. The experiments include quantitative comparisons, qualitative evaluations, and ablation studies to assess the effectiveness of the hybrid architecture and the ADVSS module.

  1. For a fair comparison, all baseline networks are reimplemented using the same training protocol and evaluated on a common dataset constructed from the publicly available fringe-projection data reported by Wang et al. [7,8]. The proposed method consistently outperforms the compared approaches in terms of mean absolute error (MAE), root-mean-square error (RMSE), absolute relative error (AbsRel), and structural similarity index measure (SSIM). It achieves an RMSE of 0.548 mm and an SSIM of 0.9985, corresponding to RMSE reductions of 65.2% and 59.6% relative to UHRNet and HiDNet, respectively. These results demonstrate the effectiveness of integrating selective state-space modeling with hierarchical window-based attention for high-precision single-shot FPP.

The remainder of this paper is organized as follows. Section 2 presents the proposed network architecture and loss formulation. Section 3 describes the experimental setup and reports the comparative and ablation results. Section 4 summarizes the main findings and discusses directions for future research.