Towards Fast and Scalable Normal Integration using Continuous Components

Francesco Milano, Jen Jen Chung, Lionel Ott, Roland Siegwart

TL;DR

This paper introduces a fast and highly scalable framework for surface normal integration by shifting from pixel-level global optimization to a component-based alignment task. By grouping smooth surface regions into continuous components and optimizing only their relative scales, the method reduces optimization variables by up to 50x, achieving state-of-the-art accuracy with a 10x speedup on high-resolution normal maps.

What Problem Does This Paper Address?

Normal integration—the process of reconstructing a 3D surface from a 2D map of surface normals—is a cornerstone of computer vision applications like photometric stereo and shape-from-shading.

Traditional state-of-the-art methods rely on global optimization frameworks that solve for the depth of every single pixel simultaneously. This approach scales poorly; as image resolution grows, the number of optimization variables and constraints explodes, driving runtimes from minutes to hours. Furthermore, correctly preserving sharp depth discontinuities (such as the boundary between a foreground object and the background) requires costly, iterative reweighting steps that further bottleneck performance.

The authors address this scalability crisis, making discontinuity-preserving normal integration practical for large, high-resolution images.

Methods

The core idea is to treat normal integration as a "divide-and-conquer" problem using a graph-theoretic approach:

  1. Component Formation: Since surface normals represent the spatial derivatives of depth, local normal similarity serves as an excellent proxy for surface continuity. The algorithm segments the normal map into large, smooth patches ("continuous components") by grouping adjacent pixels whose normal vectors vary less than a threshold ($\theta_c$).
  2. Component Filling: The internal depth of each individual patch is reconstructed independently and in parallel using standard conjugate-gradient optimization. Because each patch is smooth, its internal structure can be solved highly accurately up to a single, unknown scaling factor.
  3. Relative Scale Optimization: Instead of optimizing every pixel globally, the framework constructs a "quotient graph" (or meta-graph) where each component is represented by a single node. The optimization then solves only for a single scale parameter per component to align them correctly.
  4. Outlier Reweighting: On a smaller quotient graph, large boundary residuals can exert too much leverage and distort the reconstruction. The authors introduce a soft outlier reweighting mechanism to balance these optimization terms and ensure stable convergence.
  5. Optional Merging: To further boost speed on massive maps, components with very low boundary residuals can be iteratively merged during the optimization process.

The transition from a dense pixel graph to a simplified quotient graph is illustrated below:

Figure 3. Graph-theory interpretation of our framework. (a) Pixel-level optimization can be seen as operating on a dense graph G0 = (V, E). (b) We propose partitioning the per-pixel vertices V into components. (c) The resulting optimization operates on a quo- tient graph Q0 (11). (d) Optionally, components can be merged into one another, forming a reduced quotient graph (Sec. 3.5).

An overview of the entire pipeline is detailed here:

Figure 2. Method overview. We recast normal estimation as the estimation of the relative scale of continuous components. (a) Form continuous components based on the similarity of normals at neighboring pixels, independently reconstruct associated surface patches via per-component optimization (Sec. 3.3). (b) Align surface patches and recover discontinuities using relative scale optimization based on inter-component constraints (Sec. 3.4). (c) Optionally, during optimization, merge components to further reduce complexity (Sec. 3.5).

Datasets

The authors evaluated their approach on two primary types of data:

  • The DiLiGenT Benchmark: A standard object-level dataset featuring complex shapes with ground-truth depth maps at a resolution of $608 \times 512$ pixels (with backgrounds masked out).
  • Large-Scale Normal Maps: Mid-to-high resolution maps (ranging from 311k to 1.26M pixels) with unmasked backgrounds. These include synthetic scenes rendered via BlenderProc, real-world photometric stereo data, and "in-the-wild" normal maps predicted by the deep-learning model DSINE.

Key Insights and Ideas

  • Scale is the Only Missing Link: Reconstructing isolated, smooth patches is computationally cheap and highly accurate. The global problem isn't figuring out local shapes, but rather finding how these pre-computed shapes scale and align relative to one another.
  • Quotient Graphs Drastically Reduce Complexity: Grouping pixels into continuous components reduces the number of optimization variables by a factor of 5 to 50, transforming a massive optimization problem into a lightweight one.
  • The Necessity of Soft Thresholds: Directly porting pixel-level discontinuity models to component-level graphs fails because boundary errors scale disproportionately. Introducing log-space affine mapping for outlier weights is essential to stabilize the meta-optimization.

Key Results

  • Speedups: On large-scale normal maps, the component-based framework achieves convergence one order of magnitude faster than standard pixel-level methods. High-resolution surfaces that previously took several minutes to hours to integrate are resolved in a few seconds to under two minutes.
  • Accuracy: The method achieves state-of-the-art reconstruction accuracy on the DiLiGenT benchmark, matching or outperforming pixel-level baselines.
  • Robustness to Spurious Discontinuities: Qualitatively, by treating large smooth areas (like walls or floors) as single components, the method avoids the spurious, noisy discontinuities that global pixel-level optimizations often mistakenly introduce.

The qualitative and quantitative performance on large-scale maps can be seen in the evaluation grid:

Evaluation on large-scale normal maps comparing the proposed method against pixel-level baselines.

Limitations and Future Work

  • Smooth Discontinuities: If a depth discontinuity occurs where the surface normals remain perfectly continuous (e.g., a smooth wrap-around occlusion), the normal-similarity heuristic will fail to segment the boundary, leading to incorrect merging.
  • Overly Smooth Input Maps: Learning-based normal estimators often produce blurry, indistinct boundaries. This can cause the heuristic to merge separate foreground and background objects into a single component.
  • Future Directions: The authors suggest exploring more sophisticated component-formation heuristics, such as using deep learning to predict surface boundaries or incorporating RGB image edges alongside normal maps to guide the initial segmentation.

Summary updated

BibTeX
@inproceedings{milano2026towards,
  author = {Francesco Milano and Jen Jen Chung and Lionel Ott and Roland Siegwart},
  title = {{Towards Fast and Scalable Normal Integration using Continuous Components}},
  booktitle = {IEEE/CVF Winter Conference on Applications of Computer Vision},
  year = {2026},
}
Figure