RayMVSNet: Learning Ray-based 1D Implicit Fields for Accurate Multi-View Stereo

Junhua Xi, Yifei Shi, Yijie Wang, Yulan Guo, Kai Xu

Introduction

Multi-View Stereo (MVS) is a fundamental task in computer vision that aims to reconstruct 3D geometry from a set of calibrated 2D images. While deep learning has significantly advanced the field, traditional learning-based MVS methods are often constrained by the heavy computational and memory requirements of 3D cost volumes. These methods typically warp features into a 3D frustum and apply 3D Convolutional Neural Networks (CNNs) for regularization and depth regression. However, the cubic complexity of 3D CNNs limits the resolution of the reconstruction and often leads to the processing of vast amounts of "empty space" that does not contain scene surfaces.

RayMVSNet introduces a novel paradigm by shifting the focus from 3D volumes to 1D rays. By treating depth estimation as a 1D range-finding problem—akin to a laser scanner—the model optimizes depth along individual camera rays. This approach utilizes an Epipolar Transformer for feature aggregation and a Long Short-Term Memory (LSTM) network to model 1D implicit fields, achieving state-of-the-art accuracy while improving computational efficiency.

Methodology

RayMVSNet employs a three-stage pipeline designed to refine depth estimates from a coarse global view to a precise ray-based local view.

1. Coarse Depth Prediction

To provide a starting point for refined search, the model first constructs a low-resolution 3D cost volume. This stage generates a coarse depth map that identifies the general vicinity of the scene surface, allowing subsequent stages to focus their computational budget on relevant regions.

2. Epipolar Transformer

Feature aggregation is critical in MVS. Traditional methods often use simple variance-based pooling to compare features across views. RayMVSNet instead introduces an Epipolar Transformer. For any given point on a camera ray, the transformer uses an attention mechanism to search along epipolar lines in neighboring source images. This allows the model to dynamically weight features, effectively ignoring "noisy" data caused by occlusions, specular reflections, or lighting changes, and focusing on the most reliable matching signals.

3. Ray-based 1D Implicit Field

The core innovation of RayMVSNet is the modeling of the depth search as a 1D implicit field. The model samples points along the ray centered around the coarse depth estimate. These points are processed by an LSTM network to predict the Signed Distance Function (SDF):

  • Sequential Modeling: The LSTM treats the ray as a sequence, capturing the geometric transition as the ray approaches and passes through a surface.
  • Monotonicity Prior: By using a sequence model, the network inherently learns the monotonicity of the distance field (the distance to the surface should decrease as one approaches it and increase after passing it).
  • Zero-Crossing Regression: The exact depth is determined by regressing the zero-crossing point of the predicted SDF.

Experimental Evaluation

RayMVSNet was evaluated on several prominent MVS benchmarks, demonstrating superior performance and robustness.

  • DTU Dataset: RayMVSNet achieved an overall reconstruction score of 0.33mm, ranking first among learning-based methods at the time of publication.
  • Tanks & Temples: On this large-scale outdoor dataset, the model achieved a mean F-score of 59.48%, outperforming established baselines like CasMVSNet and UCS-Net.
  • Robustness Analysis: The authors introduced three challenging subsets of the DTU dataset focusing on Specular reflection, Shadow, and Occlusion. RayMVSNet showed a significant performance lead in these areas, validating the effectiveness of the Epipolar Transformer in handling complex lighting and visibility conditions.

Discussion and Future Work

The transition from 3D volumes to 1D rays represents a significant step toward scalable, high-resolution MVS. By leveraging the geometric priors of 1D fields and the attention-based matching of the Epipolar Transformer, RayMVSNet achieves high precision without the prohibitive memory costs of dense 3D grids.

However, the current architecture still relies on a low-resolution 3D cost volume for the initial coarse depth map. Future research directions include developing a completely cost-volume-free approach—potentially using the Epipolar Transformer to generate initial depth hypotheses—and exploring the direct, end-to-end optimization of 3D point clouds to bypass the need for depth map fusion as a post-processing step.

Summary updated

BibTeX
@inproceedings{xi2022raymvsnet,
  author = {Junhua Xi and Yifei Shi and Yijie Wang and Yulan Guo and Kai Xu},
  title = {{RayMVSNet: Learning Ray-based 1D Implicit Fields for Accurate Multi-View Stereo}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2022},
}
Figure