SD-MVS: Segmentation-Driven Deformation Multi-View Stereo with Spherical Refinement and EM Optimization

Zhenlong Yuan, Jiakai Cao, Zhaoxin Li, Hao Jiang, Zhaoqi Wang · DOI

TL;DR

SD-MVS introduces a novel traditional Multi-View Stereo (MVS) framework that leverages the Segment Anything Model (SAM) to guide pixelwise patch deformation, effectively overcoming the long-standing challenge of 3D reconstructing textureless regions. By combining this semantic guidance with a geometrically sound spherical normal refinement strategy and automated Expectation-Maximization (EM) hyperparameter tuning, the method achieves state-of-the-art accuracy on public benchmarks while cutting the runtime of competing traditional methods in half.

What Problem Does This Paper Address?

Multi-View Stereo (MVS) aims to reconstruct dense 3D models from a collection of 2D overlapping images. Traditional PatchMatch-based MVS algorithms rely heavily on matching local image patches across views. However, when these patches fall on large, textureless regions (like a blank wall or floor), the lack of visual distinctiveness leads to ambiguous matching costs and highly unreliable depth estimates.

While deep learning-based MVS methods try to resolve this by learning global context, they demand massive memory, take a long time to compute, and generalize poorly to unseen environments. On the other hand, traditional methods that use simple color or edge cues often fail near depth boundaries due to shadows, illumination changes, or occlusions, leading to severe detail distortion. The authors set out to bridge this gap by injecting robust semantic instance boundaries into a traditional PatchMatch pipeline.

Methods

The proposed SD-MVS pipeline introduces four core innovations to the standard PatchMatch workflow:

Figure 2: An illustrated pipeline of our proposed method. Images with multi views are initially downsampled and further allocated into our multi-scale architecture. Through leveraging the SAM-based segmentation, we carry out patch deformation on the matching cost to gain multi-scale matching costs Cms. By integrating Cms with the projection color error Cpc and the reprojection error Crp, the aggregated cost is acquired. Then we again employ the SAM-based segmentation for patch deformation in propagation, succeeded by load-balancing within each search domain. Subsequently, we alternately iterates spherical gradient refinement on normals and pixelwise search interval on depths for enhanced accuracy. Finally, we employ EM-based optimization for the hyperparameter tuning of wms, wrp, wpc and reassign them for the next iteration procedure.
  1. SAM-Driven Patch Deformation: Instead of using rigid square patches or error-prone color boundaries, the authors use SAM to segment semantic instances. Patches used for computing matching costs and propagation are adaptively deformed so they stay strictly within the boundaries of their respective semantic instances. This prevents pixels from across a depth boundary from corrupting the local depth estimation.
  2. Parallel Multi-Scale Consistency: Inspired by computer graphics mipmapping, the framework loads all downsampled image scales into the GPU memory simultaneously. This eliminates redundant CPU-GPU data transfers, allowing multi-scale matching costs and propagation paths to be processed in parallel.
  3. Spherical Gradient Refinement: Standard PatchMatch methods perturb surface normals using Cartesian coordinates ($x, y, z$), which introduces uneven sensitivity depending on the normal's orientation. SD-MVS treats normal refinement geometrically by operating in spherical coordinates, rotating the normal vector around two orthogonal axes, and using gradient descent to accelerate convergence.
  4. EM-Based Hyperparameter Optimization: Rather than manually tuning the weights for the different cost components (matching cost, projection color error, and reprojection error), the authors frame this as an Expectation-Maximization problem. The E-step optimizes the depth map given the current weights, and the M-step updates the weights using numerical optimization (Newton's method).

Datasets

The authors evaluated their approach on two widely recognized MVS benchmarks:

  • ETH3D High-Resolution Benchmark: A dataset featuring both indoor and outdoor scenes with high-resolution images, providing strict ground truth captured via laser scanners.
  • Tanks and Temples Dataset (TNT): A large-scale benchmark divided into Intermediate and Advanced categories, containing complex outdoor environments and large objects.

Key Insights and Ideas

  • Semantic vs. Low-Level Edges: Traditional edge detectors like Canny are easily fooled by shadows or illumination changes, yet they miss subtle depth boundaries where the color on both sides is similar. SAM provides a robust semantic mask that ignores lighting artifacts and captures true object boundaries, making it ideal for guiding patch shapes.
  • The Geometry of Normals: Surface normals naturally live on the surface of a unit sphere. Perturbing them in Cartesian space breaks this geometric constraint and causes optimization imbalances. Refining them via spherical rotations preserves normalization inherently and aligns better with the underlying geometry.
  • Automated Tuning via EM: MVS performance is notoriously sensitive to hyperparameter tuning across different scenes. Dynamically optimizing these weights via an EM loop makes the algorithm highly adaptive and robust without requiring manual intervention for every new dataset.

Key Results

  • ETH3D Benchmark: SD-MVS achieved the highest $F_1$ score among all evaluated methods, scoring 86.94% on the training set and 88.06% on the testing set (at a 2cm threshold), outperforming both traditional SOTA methods (like APD-MVS) and learning-based networks (like EPNet).
  • Tanks and Temples: The method delivered highly competitive results, achieving an $F_1$ score of 63.31% on the Intermediate set and 40.18% on the Advanced set, demonstrating excellent generalization.
  • Efficiency Gains: Thanks to the parallel mipmap architecture, SD-MVS cut the runtime roughly in half compared to traditional state-of-the-art methods like APD-MVS and ACMMP, while maintaining a highly efficient memory footprint suitable for mainstream GPUs.

Limitations and Future Work

While SD-MVS shows remarkable robustness in textureless areas, the authors note that it still faces difficulties in highlight areas (highly reflective surfaces), where specular reflections corrupt the matching cost calculation. In the future, the team plans to address these specular highlights and design a more sophisticated view selection strategy to further boost reconstruction completeness.

Summary updated

BibTeX
@inproceedings{yuan2024sd,
  author = {Zhenlong Yuan and Jiakai Cao and Zhaoxin Li and Hao Jiang and Zhaoqi Wang},
  title = {{SD-MVS: Segmentation-Driven Deformation Multi-View Stereo with Spherical Refinement and EM Optimization}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2024},
  doi = {10.1609/aaai.v38i7.28512},
}
Figure