Telling Noise from Structure by How Curl Grows with Scale

Turning a map of surface normals (or slopes) into a depth map is an integration problem. Real normal maps are never perfectly consistent: summing slopes around a closed loop rarely returns to zero. This mismatch, called non-integrability or nonzero curl, has three common causes. Sensor noise produces it, depth jumps at occluding edges produce it, and a wrong camera or lighting model produces it. Each cause calls for a different fix. Noise should be averaged away, real jumps should be cut so they do not blur, and model errors should be corrected once for the whole image rather than spread over it. Current integrators mostly look at one pixel neighbourhood at a time, so they cannot tell these causes apart.

Our idea is to measure how the loop mismatch (the circulation) grows as the loop gets larger. Noise grows like the square root of loop size, a depth jump whose height varies along the edge grows linearly, and a smooth model error grows with loop area. This scaling exponent can be computed at every pixel cheaply from an integral image of the discrete curl. It gives each local decision about whether to keep or cut a connection access to context from coarser scales. We then build a coarse-to-fine integrator in which this exponent map decides, at each pixel, whether to smooth, cut, or hand the mismatch to a global correction step.

Core Claim

Let $\Gamma(x,\ell)$ be the circulation of the measured gradient field around a square loop of side $\ell$ pixels centred at pixel $x$. This equals the summed discrete curl over the enclosed square, so a single integral image gives it in constant time per loop. To first order, the three sources produce different power laws:

$$ |\Gamma(x,\ell)| \;\approx\; \underbrace{\sigma\sqrt{4\ell}}_{\text{independent gradient noise}} \;+\; \underbrace{\kappa\,\ell}_{\text{step edge with height slope }\kappa} \;+\; \underbrace{c\,\ell^2}_{\text{smooth curl density }c} $$

Here $\sigma$ is the per-edge gradient noise level. The noise term is a sum of about $4\ell$ independent errors along the perimeter. The middle term holds because a loop crossing an occluding edge twice picks up the difference in step height between the two crossings, which is about $\kappa\ell$. The last term is the area integral of a smooth curl. Fitting the local log–log slope $\alpha(x)$ of $|\Gamma|$ against $\ell$ over dyadic $\ell\in\{1,2,4,\dots,64\}$ therefore classifies each region's mismatch as noise ($\alpha\approx 1/2$), discontinuity ($\alpha\approx 1$), or model error ($\alpha\approx 2$).

We claim that using this classification to modulate an existing discontinuity-preserving integrator gives two concrete improvements. It removes the false cuts that local integrators make under heavy noise. It also removes the low-frequency warping that appears when model error is smeared by least squares. We are explicit about one limitation. A step of constant height produces no curl at all, so it is invisible to this test and must still be found by local one-sided cues. Likewise, a region fully enclosed by depth jumps (a "surface island") has no slope information tying it to the rest of the surface. We do not claim to solve either problem.

Relation to Prior Work

Several papers motivate the method. Normal Integration: A Survey frames curl as path dependence and finds that no surveyed solver handles noise, discontinuities, free boundaries and non-rectangular domains all at once. POP Image Fusion documents how least-squares reintegration spreads residuals into halos. What Is the Range of Surface Reconstructions from a Gradient Field? and Surface Reconstruction from Gradient Fields via Gradient Transformations show that classic solvers are projections onto the integrable subspace, with spatially varying weights as the main lever. These works treat curl as one undifferentiated residual. We split it by source before deciding how to weight it.

The method itself builds on two integrators. Bilateral Normal Integration (BiNI) assumes every point is smooth on at least one side and reweights left/right derivatives in an iteratively reweighted least-squares solver. We keep its log-depth perspective formulation and its weighting machinery. We add a scale-derived prior on those weights, because BiNI's decision is purely local and is reported to be noise-sensitive. Discontinuity-preserving Normal Integration with Auxiliary Edges models step heights explicitly as hidden variables. Its authors report that thin structures confuse its local gradient filter under noise, which is exactly where our square-root signature should help.

Other work limits what we can claim. Robust Surface Reconstruction via Triple Sparsity handles outliers with non-convex sparse penalties that are sensitive to initialization. We avoid non-convexity beyond what BiNI already has. Towards Fast and Scalable Normal Integration using Continuous Components is a two-level hierarchy built on hard angular thresholds, which can fracture curved surfaces. Our hierarchy comes from circulation statistics rather than normal similarity.

On the multi-scale side, Structure-Aware Residual Pyramid Network and SparseMask show that injecting coarse context into fine predictions protects global layout. Both also show the failure mode we must avoid: coarse context softening sharp edges. In our design, coarse scales never smooth across an edge directly. They only inform the keep-or-cut decision.

ECON is the closest existing combination of global context and bilateral integration. It anchors integration with a fitted human body model, which works only for humans and fails when the template is wrong. Our context comes from the normal field itself and assumes no shape template.

Research Program

The first stage is analysis. We will derive the scaling law above more carefully, covering correlated noise from photometric stereo, curved occlusion edges, and the perspective log-depth field. We will then validate it on synthetic surfaces where each source can be switched on independently. These surfaces include Ramp Peaks and Vase with added Gaussian normal noise, step edges with controlled height slope $\kappa$, and smooth curl injected by integrating with a deliberately wrong focal length or light direction. The question is whether the per-pixel exponent recovers the injected source. We measure this as classification accuracy against the known source map.

The second stage builds the integrator. We compute $\alpha(x)$ and the three amplitudes by a small per-pixel least-squares fit on the log-circulation curve. Smooth-curl regions trigger a global correction. We first try re-estimating a few camera or lighting parameters, such as focal length and a low-order light error. If that is underdetermined, we instead remove the projection of the curl onto a smooth low-dimensional basis before integration. We then run BiNI on an image pyramid. At each level, the bilateral weights are multiplied by a prior. That prior pushes toward "keep connected" where $\alpha$ indicates noise and toward "cut" along curves where $\alpha$ indicates a varying step. The coarse-level depth serves as the initial guess for the next finer level. This addresses BiNI's dependence on a good smooth initialization while leaving its local mechanism in charge of constant-height steps.

The third stage evaluates on real data. We use normal maps estimated by photometric stereo rather than ground-truth normals, because estimated normals carry realistic non-integrability from specularities and shadows.

Baselines

The naive reference is least-squares Poisson integration (Frankot–Chellappa where the domain allows, a sparse Poisson solve on masks otherwise), as described in the survey. It shows how much is lost by treating all curl alike.

BiNI is the direct parent of our method and must be beaten on noisy inputs specifically. It reports 0.07 mm error on DiLiGenT "Cow" versus 0.89 mm for smooth integration. Running it unchanged isolates the value of the scale prior.

The strongest existing method on our main benchmark is the auxiliary-edge integrator of Kim et al.. It reports mean absolute depth error (MADE) on DiLiGenT Harvest falling from 3.30 to 2.44 and the lowest MADE in 7 of 9 categories. Beating it means matching it on clean ground-truth normals while achieving lower MADE on photometric-stereo normals and in a noise sweep. On Ramp Peaks we also compare against Triple Sparsity, which reports MSE 0.0212 versus 0.1016 for $L_1$ and 0.1494 for least squares. We include the continuous-components method too, but no reported numerical result for it was found on Lacuna. We will rerun it.

For fairness, all methods receive identical normal maps, masks and camera intrinsics. Every method's hyperparameters, including ours, get the same tuning budget on the synthetic set and are frozen before touching DiLiGenT. We report wall-clock time on the same machine.

Four ablations isolate the key ingredient. The first is the same pyramid with coarse-to-fine warm starts but no circulation prior. The second uses single-scale curl magnitude in place of the scaling exponent. The third removes the smooth-curl correction. The fourth applies a normal denoiser followed by BiNI.

Why not just…?

Why not just denoise the normals and run BiNI? This is the most serious threat. Generic denoising cannot tell a varying step from noise and will blur exactly the curl signature that marks thin occluding structures. However, if photometric-stereo noise is mild, denoising may suffice. The denoise-then-BiNI ablation, run across the noise sweep and on the human-body scans with fingers and hair from Kim et al., settles this. If it matches us everywhere, the scaling prior has no practical value and we will say so.

Why not just use a coarse-to-fine or multigrid solver? Multigrid accelerates the isotropic Poisson equation without changing what it minimizes. As the survey and Agrawal et al. note, a faster least-squares solve still spreads curl. The pyramid-without-prior ablation measures how much of any gain comes from warm-starting alone.

Why not just threshold curl magnitude or bad intensities? Intensity thresholding helps photometric stereo, as the DiLiGenT paper shows. It does nothing for curl from depth jumps or a wrong focal length. A single-scale curl threshold confuses a large noise spike with a small real step, and the scaling exponent exists precisely to separate them. The single-scale ablation tests this directly.

Why not predict depth directly with a multi-scale network? Direct depth networks such as SARPN lose thin geometry and bend planes, which is why ECON and Kim et al. integrate normals instead. That approach answers a different question than ours, which is how to integrate a given normal map, so we do not treat it as a competitor.

Proposed Experiments

The first decisive check is synthetic. On Ramp Peaks and Vase with independently controlled $\sigma$, $\kappa$ and smooth curl $c$, the fitted exponent should recover each source. When sources are mixed, the integrator should keep the Ramp Peaks MSE no worse than Triple Sparsity's 0.0212. The noise and step settings will be matched to that paper's setup as closely as its description allows.

The second check is a noise sweep on DiLiGenT with ground-truth normals, using MADE as the metric. We predict that BiNI and Kim et al. begin making false cuts as $\sigma$ grows, while our method's error rises more slowly. At zero noise we expect parity, since the prior should then be inactive.

The third check uses DiLiGenT normals estimated by calibrated photometric stereo and by uncalibrated estimation through the DANI-Net codebase. Uncalibrated estimation is our real-world source of smooth model-error curl. Here the smooth-curl correction should reduce low-frequency warping, measured as MADE after removing only a global offset.

The fourth check uses the 27-scan human-body set from Kim et al. and focuses on thin structures. We report MADE restricted to pixels within a few pixels of ground-truth occlusion edges.

The method is falsified if one of two things happens. The exponent might fail to separate the sources on synthetic data, for example because photometric-stereo noise is too spatially correlated to scale like a square root. Or denoise-then-BiNI might match the full method on the third and fourth checks.