Does the Inverse Depth Advantage Survive Real Cameras?

Camera-based mapping systems often store each 3D point not by its distance $d$ but by its reciprocal, the inverse depth $\rho = 1/d$. The reason is that when a camera moves sideways, a point's apparent shift in the image is proportional to $\rho$, and very distant points simply sit near $\rho = 0$. This choice makes the estimation problem nearly linear and handles points at the horizon cleanly. The textbook evidence for it, however, comes from analyses and simulations that assume each pixel measurement carries small, unbiased, bell-shaped (Gaussian) noise. Real cameras behave differently. Motion blur smears features along their direction of motion. A rolling shutter reads out image rows at slightly different times, so the camera moves partway through a frame. Exposure changes shift intensities. These errors are not random jitter. They point along the direction of image motion, which is the same direction that carries inverse-depth information, and they grow with camera rotation, which carries none.

This note proposes to measure, and then correct, the gap between how inverse-depth estimators behave in simulation and how they behave on real cameras. The core claim is that real sensor effects produce a parallax-aligned bias in inverse depth. The bias is worst for distant, low-parallax points under fast rotation, which is the regime where inverse depth is supposed to win and where synthetic benchmarks show monocular trackers failing. We would build a measurement model that expresses blur, rolling-shutter, and exposure error directly in the parallax direction, test it on paired synthetic and real data, and check whether it restores honest uncertainty, meaning error bars that match actual errors, on real sequences.

Core Claim

Several papers supply the method and the theory. Unified Inverse Depth Parametrization for Monocular SLAM introduced the six-parameter inverse-depth landmark and showed that its linearization error at 0.5° parallax is about 0.8%, against more than 200% for Euclidean depth. Impact of Landmark Parametrization on Monocular EKF-SLAM with Points and Lines extended the stability argument to points and lines. Both analyses assume additive Gaussian image noise. Semi-dense Visual Odometry for a Monocular Camera and Direct Sparse Odometry carry a Gaussian over per-pixel inverse depth into direct image-alignment tracking, so they inherit the same assumption.

On the evaluation side, TartanAir supplies the motivation. Its photorealistic synthetic dataset has far more varied motion than KITTI, with a motion diversity score of 0.95 against 0.005. On it, DSO and ORB-SLAM break down under aggressive six-degree-of-freedom motion. But TartanAir treats these systems as black boxes, and it acknowledges that it lacks real sensor blur and exposure effects. Our proposal differs from all of these in one respect. We ask whether the inverse-depth noise model itself is correct once the camera is real, and we answer with paired sim-versus-real measurements of uncertainty calibration rather than trajectory error alone.

The mechanism can be stated in one equation. Consider a feature observed in two frames whose rows differ by $\Delta r$, on a sensor with row readout time $\tau$ and exposure time $T$. The observed displacement $\delta$ along the epipolar line, the line in the second image where the matching point must lie, is approximately

$$\delta \approx \rho\,(b + v_\perp \tau \Delta r) + \omega_\perp \tau \Delta r + \beta + \epsilon, \qquad \epsilon \sim \mathcal{N}\!\left(0,\ \sigma_0^2 + \kappa\,T^2(\omega_\perp + \rho\, v_\perp)^2\right).$$

The symbols are as follows. $b$ is the projected baseline between the two exposures. $v_\perp$ and $\omega_\perp$ are the translational and rotational image-motion rates along the epipolar direction. $\beta$ is a photometric-shift term driven by exposure change. $\sigma_0$ is ordinary pixel noise. $\kappa$ is a blur constant to be calibrated.

The equation makes two consequences explicit. The first is a rolling-shutter term that does not depend on depth, $\omega_\perp \tau \Delta r$. When $\rho b$ is small, this term reads as spurious parallax and biases $\rho$ away from zero. The second is a blur variance that grows with rotation, aligned with the epipolar line. The textbook model keeps only $\rho b$ and $\sigma_0$. Our hypothesis is that this simplification is harmless in simulation and harmful on real cameras.

Research Program

The program has three parts.

Paired attribution study. We need simulated and real data that share the same scene geometry and trajectory, so that sensor effects are the only remaining difference. TartanAir supplies ground-truth depth and poses. From these we can synthesize rolling shutter by interpolating poses per row and reprojecting, blur by averaging interpolated sub-frames, and exposure drift by applying gain curves. Each effect can be switched on alone, and its contribution to inverse-depth bias measured against perfect ground truth. For the real side, we use sequences with external ground truth. These are EuRoC MAV, which has a global shutter and Vicon motion capture, and the TUM RGB-D SLAM sequences used by DeMoN, which use Kinect rolling-shutter cameras with motion-capture poses and sensor depth. We will also record a small new set: a global-shutter and a rolling-shutter camera mounted side by side under motion capture. This contrasts the two shutters on identical motion, a comparison no dataset in the file provides.

The parallax-aligned noise model. We implement the equation above inside two estimators. The first is a filter-based monocular SLAM system following the unified inverse-depth formulation. The second is a direct semi-dense/sparse inverse-depth odometry pipeline. In both, $\tau$, $T$, and exposure gain come from camera metadata or a one-time calibration. The motion rates come from the current pose estimate, or from a gyroscope where EuRoC provides one. The bias term is subtracted, and the covariance is replaced, per measurement. The model adds only a few calibrated constants. No learned component is involved, which keeps the model's effect separable from any appearance-transfer effect.

Calibration diagnostics. The primary metric is the normalized estimation error squared (NEES): the squared error divided by the claimed variance, which should average to 1 for an honest estimator. We compute it on landmark inverse depth against ground-truth depth. Results are stratified by parallax angle and by angular velocity, and reported separately for simulation and reality. The "sim-to-real calibration gap" is the difference between the simulated and real NEES curves. Secondary metrics are inverse-depth bias for distant points, absolute trajectory error (ATE), and tracking success rate.

Baselines

The naive reference point is the standard additive-Gaussian inverse-depth model, as used in the unified parametrization paper and in DSO. We run it with its default noise settings on every sequence and record its sim and real NEES curves. This tells us how large the calibration gap is before anyone intervenes.

The strongest competitor on this specific question is the same estimator with a single global noise scale tuned for real data. In practice this is what engineers do. We give it the same tuning budget as our model, a grid search over its noise scale on held-out calibration sequences, and evaluate both on identical test sequences and hardware. To beat it, our model must reach NEES within a factor of about 1.5 of the ideal value of 1 in every parallax and angular-velocity bin, while the tuned baseline is over- or under-confident in at least the low-parallax, high-rotation bins. It must also reach equal or lower ATE.

For trajectory-level context, the only relevant published figures in the file come from TartanAir. Monocular ORB-SLAM's success rate falls from 48% on Soul-city Easy to 25% on Hard, and its ATE in Abandoned-factory rises from 0.165 in daytime to 9.385 at night. We found no reported result on Lacuna for DSO on TartanAir, EuRoC, or TUM RGB-D. We will therefore run DSO ourselves under the shared protocol rather than quote a figure.

Two ablations isolate the key ingredient. The first keeps the parallax-aligned variance but drops the bias term. The second keeps both terms but applies them isotropically rather than along the epipolar line. A third ablation repeats everything with a Euclidean-depth landmark. Its question is whether the sim-to-real gap is specific to inverse depth or shared by both parametrizations. If it is shared, the claim about inverse depth weakens to a claim about noise models in general.

Why not just…?

Why not just inflate the noise covariance? This is the most serious threat. A single tuned scale can bring average NEES to 1. Our argument is that the rolling-shutter term is a bias, not a variance, and that blur variance depends on rotation. A global scale should therefore leave distant points biased and make nearby, high-parallax points over-cautious, which wastes information and hurts trajectory accuracy. The stratified NEES and bias plots settle the question directly. If the tuned scale matches our model in every bin, the structured model is unnecessary, and we will report that.

Why not just make the simulator more realistic? Our attribution study does exactly this, and synthetic injection is part of the method. But a simulator that renders blur and rolling shutter still evaluates an estimator whose internal noise model ignores them. Better rendering exposes the failure; it does not repair it. The real reason to doubt this alternative is that TartanAir, despite photorealism and thirty environments, already shows tracking collapse under rotation and lighting change. Moreover, any simulator fidelity claim still needs the real-data validation we run.

Why not just use learned depth priors to avoid the low-parallax regime? Deep Virtual Stereo Odometry feeds network depth into DSO as virtual stereo measurements and matches stereo systems on KITTI. Its depth network was trained on KITTI's nearly straight-line driving, however, and degrades out of domain. More importantly, a depth prior does not remove the spurious parallax that rolling shutter adds to tracking residuals. We treat the prior as complementary. As a secondary check, we would add a simple prior from the same estimator family and test whether our correction still helps on top of it.

Why not just retrain end-to-end networks on synthetic data? Focus on Defocus shows that synthetic-only training transfers when it rests on a physical invariant. It reports a zero-shot real MSE of 0.045 against 0.184 for direct regression, but only within about 2 m, using focal stacks. The parallax relation is invariant only if sensor timing is modeled. That is our point, and it argues for adding sensor physics to the geometry rather than hoping a network absorbs it.

Proposed Experiments

The first decisive check is whether the gap exists. With the standard Gaussian model, NEES on clean TartanAir should stay near 1 across bins. On TUM RGB-D and our rolling-shutter recordings, NEES should rise sharply in the low-parallax, high-angular-velocity bins, while the global-shutter twin stays closer to 1. If the real rolling-shutter and global-shutter NEES curves coincide, the hypothesis is wrong and the project stops at a negative result. That result would still be worth reporting, because it would vindicate the simulation-based analyses.

The second check is attribution. Injecting rolling shutter, blur, and exposure drift one at a time into TartanAir should reproduce most of the real NEES elevation. Rolling shutter should dominate the bias at low parallax. Any part of the real gap that remains unexplained points to unmodeled effects, and we will report its size.

The third check is the repair. Using the parallax-aligned model on the real sequences, compared against the tuned-inflation baseline under equal tuning budget, our model should bring stratified NEES toward 1, reduce the signed bias of distant-point $\rho$, and lower ATE and tracking failures on high-rotation segments of EuRoC and TUM RGB-D. We will also replay TartanAir Hard trajectories with injected sensor effects and compare DSO-style tracking success with and without the correction. This tests whether some of the failure TartanAir attributes to motion diversity is actually unmodeled sensor timing.