Deep S2P: Integrating Learning Based Stereo Matching Into the Satellite Stereo Pipeline

Elías Masquil, Thibaud Ehret, Pablo Musé, Gabriele FaccioloarXiv 2026

TL;DR

While deep learning-based stereo matchers achieve state-of-the-art results on standard computer vision benchmarks, naively plugging them into satellite imagery pipelines causes them to fail due to differences in viewing geometry and disparity assumptions. This paper introduces Deep S2P, an extension of the classic Satellite Stereo Pipeline that adapts the rectification stage to accommodate deep matchers, delivering significantly sharper and more complete 3D Digital Surface Models (DSMs).

What Problem Does This Paper Address?

Generating accurate 3D Digital Surface Models (DSMs) from satellite imagery is crucial for urban planning, disaster response, and environmental monitoring. For decades, classical photogrammetric pipelines like the Satellite Stereo Pipeline (S2P) have relied on traditional cost-volume matching algorithms like Semi-Global Matching (SGM). While robust and scalable, these traditional methods often produce blurry edges and miss fine geometric details.

Recently, end-to-end deep learning stereo models (e.g., FoundationStereo, MonSter) have revolutionized the field. However, these models are predominantly trained on close-range, ground-level datasets. When applied to satellite imagery, they frequently fail or produce unstable predictions. This is because satellite imagery violates their implicit assumptions regarding epipolar geometry, disparity ranges, and disparity polarity (the directional sign of pixel shifts between stereo pairs).

Methods

Deep S2P bridges this gap by keeping S2P’s scalable tiling architecture but modifying its rectification stage to satisfy the strict geometric constraints required by deep learning models.

The authors introduce three lightweight but critical adjustments:

  1. Disparity Polarity and Altitude Consistency: Deep models assume unipolar disparities (shifts occur in only one direction) and expect disparity magnitude to increase with altitude. Deep S2P uses sparse SIFT matches to estimate a global horizontal translation that enforces a single sign across all disparities, and uses Rational Polynomial Coefficients (RPC) camera models to ensure higher elevations correctly map to larger disparities.
  2. Disparity Range Handling: Deep matchers become highly unstable when operating near zero disparity. To mitigate this, Deep S2P applies an additional horizontal shift to move the entire disparity range away from zero, enforcing a minimum disparity margin of 50 pixels.
  3. Left-Right Consistency Filtering: To eliminate unreliable estimates, the pipeline runs the deep matchers in both left-to-right and right-to-left directions, invalidating any pixels where the disparity predictions differ by more than 2 pixels.

The authors integrated several state-of-the-art models into this pipeline: StereoAnywhere, MonSter, FoundationStereo, and "Diachronic Stereo" (a variant of MonSter fine-tuned specifically for satellite imagery).

Datasets

The pipeline was evaluated using same-date stereo pairs from the 2019 IEEE GRSS Data Fusion Contest dataset, which features WorldView-3 satellite imagery over Jacksonville, Florida. The dataset includes 50 cm resolution LiDAR-derived ground-truth DSMs with semantic annotations.

The authors split their evaluation into two categories:

  • Best Pairs: Image pairs meeting ideal geometric criteria (baseline angles between 5° and 45°, incidence angles below 40°).
  • Worst Pairs: Geometrically challenging pairs with extreme incidence angles or excessively small/large baselines.

Key Insights and Ideas

  • The Metric Saturation Trap: One of the paper's most interesting findings is that standard quantitative metrics like Mean Absolute Error (MAE) fail to capture the true progress of deep stereo matchers. While deep models show only modest numerical improvements over SGM, their visual superiority is stark. This suggests that current evaluation metrics—and even the LiDAR ground truths themselves, which contain noise and resolution limits—are bottlenecking how we measure 3D reconstruction quality.
  • Zero-Disparity Vulnerability: Deep networks are highly sensitive to data distributions. The fact that they fail near zero disparity highlights a lingering generalization gap in "zero-shot" foundation models when applied to overhead earth observation data.
  • The Vegetation Bottleneck: Vegetation remains the ultimate equalizer. Whether using classical hand-crafted costs or multi-billion parameter foundation models, reconstructing trees remains highly inaccurate due to repetitive textures, wind movement, and temporal changes.

Key Results

Across all ideal "Best Pairs" experiments, learning-based matchers consistently outperformed traditional cost-volume methods in both accuracy and completeness:

  • Accuracy: FoundationStereo achieved the highest accuracy, reducing the 90th Percentile Error (P90) to 1.91 m and the Normalized Median Absolute Deviation (NMAD) to 0.53 m, compared to SGM's 2.30 m (P90) and 1.03 m (NMAD).
  • Completeness: Deep matchers provided substantially more complete reconstructions, yielding ~88–90% valid points, whereas classical SGM/MGM baselines hovered around 78–81%.
  • Challenging Geometry: On "Worst Pairs", completeness dropped significantly for all models (down to 61–66%), but the satellite-fine-tuned Diachronic Stereo model proved to be the most robust, maintaining the lowest overall errors.

Qualitatively, the visual difference is striking. As seen in Figure 1, deep learning models reconstruct sharp building footprints and fine structures that appear completely washed out or blocky in classical SGM/MGM outputs.

Fig. 1. DSM reconstructions for two AOIs. Top row: JAX 068 (urban scene). Bottom row: JAX 559 (suburban scene with dense vegetation).

Limitations and Future Work

Despite the clear visual improvements, Deep S2P comes with a few trade-offs:

  • Computational Cost: Integrating deep learning matchers roughly doubles the runtime compared to the GPU-accelerated classical baselines.
  • Vegetation Failures: Performance drops significantly over forested or heavily vegetated areas across all models, indicating that general-purpose stereo models still cannot resolve highly complex, non-rigid natural structures from space.
  • Viewing Geometry Sensitivity: Performance degrades under extreme viewing angles, leaving room for future work in developing more geometry-resilient deep architectures or specialized satellite fine-tuning strategies.

Summary updated

BibTeX
@misc{masquil2026deep,
  author = {Elías Masquil and Thibaud Ehret and Pablo Musé and Gabriele Facciolo},
  title = {{Deep S2P: Integrating Learning Based Stereo Matching Into the Satellite Stereo Pipeline}},
  year = {2026},
  eprint = {2603.21882},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2603.21882},
}
Figure