Metric Scale from the Camera's Own Ray Spread: Manhattan Lines as Scale Amplifiers for Non-Central Images

A single ordinary photograph cannot tell a dollhouse from a house. Scaling the whole scene up or down leaves every pixel unchanged, so depth networks either output depth only up to an unknown scale or borrow scale from outside the image: a known camera height, a focal length stored in the file, or a few laser points. A non-central camera is one whose pixel rays do not all pass through one point. Examples are a camera spun on an off-center arm to build a panorama, a camera looking into a curved mirror, or a camera rig treated as one sensor. Such a camera carries a physical length inside its own optics, namely the spread of its ray origins. That spread acts like a tiny stereo baseline, so in principle one image fixes metric scale. The catch is that the baseline is centimetres while rooms are metres, so the scale signal per pixel is very weak.

We propose to treat the room's own structure as the amplifier for that weak signal. Under the Manhattan world assumption, man-made scenes are dominated by planes and lines along three perpendicular directions. Once those directions are known, each structural line has only two free parameters instead of four, and every pixel along a long wall–ceiling edge votes on them. Hundreds of individually useless ray-origin offsets then combine into one well-conditioned estimate of metric scale. We will build an estimator that turns non-central Manhattan line evidence into a single metric scale with an honest uncertainty, and use it to calibrate a dense, scale-free depth network. We will also characterize, in theory and on rendered and captured images, when this works and when it collapses. That characterization is the part the literature is missing.

Core Claim

The closest existing work is Scaled 360 Layouts: Revisiting Non-Central Panoramas. It runs a HorizonNet-style network on synthetic non-central circular panoramas and passes the predicted boundaries to linear solvers in Plücker line coordinates, a standard 6-number description of a 3D line. It reports a 0.223 m corner error and 93.88% 3D IoU in Manhattan rooms without any camera-height prior. That paper establishes that scale is recoverable in simulation. It does not show how scale accuracy depends on baseline, depth, image noise and the amount of line evidence. It also outputs only the room shell, with no depth for furniture, and was never tested on real hardware.

Our claim has three parts. First, the conditioning of non-central scale recovery is governed by a quantity we can compute before solving. Second, the Manhattan constraint is what makes that quantity usable at realistic baselines. Third, a single well-estimated scale, applied to a scale-free dense depth network, yields metric depth for the whole image, including clutter, with no height, focal-length or range-sensor input.

The expected scaling comes from the stereo analogy. For a point at depth $Z$ seen with angular noise $\sigma_\theta$ across a ray-origin spread $b$, depth error grows roughly as

$$\sigma_Z \approx \frac{Z^2 \sigma_\theta}{b},$$

which is the usual stereo depth-error relation. A line constrained to a known direction, observed at $N$ roughly independent pixels whose origins span the full spread, should reduce the relative scale error by about $1/\sqrt{N}$. Combining $K$ such lines that share one global scale should reduce it further, by about $1/\sqrt{K}$. Testing whether real images follow this relation, and where line-detection errors, which are correlated along a line rather than independent, break it, is the central analysis.

Research Program

The first component is an estimability analysis. Following the ray-space view of Multi-View Geometry for General Camera Models, we model each pixel as a line with origin $\mathbf{o}_i$ and direction $\mathbf{d}_i$. For each line family and each device, we derive the Fisher information that the observations carry about a global scale $s$. Three devices are in scope: a circular non-central panorama, a two-to-four-camera rig with little or no view overlap, and a spherical-mirror catadioptric camera. The analysis should show which line families carry scale at all. For instance, we expect lines parallel to the rotation axis of a circular panorama to carry little scale information, while horizontal wall–ceiling edges carry most of it. This should be confirmed by derivation, not assumed.

For catadioptric mirrors we reuse the analytical projection of lines and vanishing points from Analytical Modeling of Vanishing Points and Curves in Catadioptric Cameras, which models how parallel lines image as curves and recovers orientation up to scale. We extend it to scale by applying the same ray model to the line offsets. That paper also supplies a constraint: it reports that approximating such a mirror as central produced a 17° line-direction error, so we do not use central approximations anywhere in the solver.

The second component is the estimator itself. A boundary network predicts wall–ceiling and wall–floor curves in the raw non-central image. We use the 1D column representation of HorizonNet: Learning Room Layout With 1D Representation and Pano Stretch Data Augmentation, trained on renders with the true non-central model. Manhattan or Atlanta directions are estimated first. For the vertical axis we use the globally optimal search of Globally Optimal Vertical Direction Estimation in Atlanta World, which tolerates heavy outlier rates. Given the directions, each line reduces to a 2D offset. We fit all offsets and the global scale jointly by robust least squares over the pixel rays. The Fisher information from the first component supplies a per-image scale variance, so the system can abstain when the variance is too high.

The third component is dense metric depth. We run a scale-free depth predictor on the image, either on perspective crops resampled with each pixel's true ray direction or with a model fine-tuned on non-central renders. We then fit one scale and shift so that its depths agree with the triangulated structural lines. This mirrors how Zablocki locks scale with a few LiDAR lines and how Wofk et al. do it with visual-inertial points. The difference is that our anchor points come from the camera's own geometry, with no extra sensor. Because the anchors are a few long, consistent lines rather than scattered returns, they should avoid the outlier sensitivity of sparse range points on reflective surfaces.

Data and Hardware

No real non-central layout benchmark appears in the file, so we build three evaluation tiers. Tier one is the synthetic non-central dataset of Scaled 360 Layouts, used for direct comparison. Tier two consists of non-central renders, at controlled baselines from 2 to 30 cm, of the metric meshes of Structured3D and Matterport3D. Matterport3D adds real textures and non-cuboid rooms; we draw on the ZInD statistics, which report 12.5% non-Manhattan rooms and 32.5% non-flat ceilings, to stress-test assumption violations. Tier three is a captured set of about 100 rooms imaged with a camera rotated on an offset arm and with a spherical-mirror rig, with room dimensions measured by a laser rangefinder. This tier exists to measure the hardware gap the prior work left open: calibration error in $\mathbf{o}_i$, lens aberration and stitching seams.

Baselines

The naive reference point treats the image as central and outputs HorizonNet or AtlantaNet layouts scaled by the training-set median camera height. This shows how much scale error comes from simply guessing. On the synthetic non-central set, Scaled 360 Layouts reports 82.66% 3D IoU for HorizonNet and 83.94% for AtlantaNet in Manhattan rooms.

The strongest existing method for this exact question is the Plücker linear solver of Scaled 360 Layouts, with its reported 0.223 m Manhattan corner error and 93.88% 3D IoU on its synthetic set. We will rerun it on all three tiers with the same boundary network and the same training renders, so that only the scale solver differs. Beating it means a lower metric corner error at matched or better 3D IoU on tier one. It also means a clearly flatter degradation curve as the baseline shrinks and as noise in the ray-origin calibration grows in tiers two and three. A win only on tier one would not be enough.

The strongest dense competitor is Metric3D v2, which reports zero-shot AbsRel 0.047 on NYUv2. We will give it perspective crops of our images together with the true focal length. This is the most favorable setting for it, since it needs focal length to resolve scale. Beating it means lower AbsRel and lower median scale error on our tiers without our method receiving that metadata. For the "just assume height" family, we run a central panoramic depth network with a camera-height prior, in the spirit of GroCo, which reports AbsRel 0.089 on KITTI. We give it the true measured height and also perturbed heights. We also include PAGCNet, which reports RMSE 0.1935 on Structured3D, as a central method whose scale comes from learned dataset statistics. No reported result was found on Lacuna for any method on real non-central imagery.

Two ablations isolate the key ingredient. The first keeps the full non-central ray model but drops the Manhattan direction constraint, triangulating each line with all four parameters free. If that matches the full method, the amplification claim is false. The second keeps Manhattan but replaces true ray origins with a central approximation. This should make scale unobservable and confirms that the signal really comes from ray-origin spread.

Why not just…?

Why not just measure the camera height and use an ordinary panorama? For a robot with a fixed, level mount on flat floors, this is a real threat and may well match us. GroCo and PAGCNet themselves note that the height assumption breaks on stairs, uneven floors, variable mounts and occluded ground. Our height-prior baseline will be run with correct heights and with heights perturbed by a few centimetres. We will report the crossover point, if one exists, where the camera's internal baseline beats a tape measure. If the crossover requires baselines larger than practical devices allow, we will say so.

Why not just add a cheap range sensor? Zablocki shows that under 100 LiDAR points fix scale. That is accurate, but it adds a second sensor, cross-calibration and synchronization, and it suffers on reflective or absorbing surfaces. We do not claim to beat LiDAR accuracy. We claim to approach it with no extra sensor, and the tier-three captures will quantify the gap.

Why not just use a metric foundation model? Metric3D v2 needs a focal length and a central perspective camera, and it learns scale from data rather than measuring it. Giving it the true focal length on crops is a fair, favorable test. If it still wins, the contribution narrows to the cases where metadata is missing or the optics are non-perspective. Our scale-variance output gives a second, testable advantage: it can flag the images where its own scale is untrustworthy, which a learned scale cannot do.

Why not treat a multi-camera rig as ordinary stereo? Where views overlap, stereo matching is better conditioned than our approach, and we will not compete there. The method targets single-sensor non-central devices and rigs whose views barely overlap, where no stereo correspondence exists but ray origins still differ.

Decisive Checks

The idea stands or falls on three measurements. First, on tier two, the relative scale error must track the predicted $Z^2\sigma_\theta/b$ and $1/\sqrt{NK}$ trends to within a modest constant factor. Second, the no-Manhattan ablation must be clearly worse at baselines below about 10 cm, which is the amplification claim. Third, on tier-three captures with ray origins calibrated in practice, the median scale error must stay within a few percent and the method's predicted variance must be calibrated against laser-measured ground truth. If real calibration error in $\mathbf{o}_i$ swamps the centimetre baseline, that negative result is itself the answer to the hardware question that Scaled 360 Layouts left open.