Depth from sensor

RGB-D cameras capture a color image and a per-pixel depth image simultaneously. Getting depth directly from hardware changes the SLAM problem fundamentally: there is no scale ambiguity to resolve, no need to triangulate points from parallax before the map becomes useful, and dense reconstruction becomes possible from the very first frame. The field took off when cheap consumer depth cameras arrived around 2010-2011 (the Microsoft Kinect), which triggered the wave of real-time volumetric fusion systems starting with KinectFusion.

Two sensing principles (plus a hybrid)

There are two dominant sensing principles:

A third, related design is active IR stereo (e.g. Intel RealSense D400 series): a classical stereo pair aided by a projected IR texture, so it also works on textureless surfaces while degrading gracefully to passive stereo in sunlight.

Structured lightActive IR ToF
PrinciplePattern triangulationPer-pixel travel time
Typical range~0.5-4 mup to ~4-5 m
Example sensorsKinect v1, Orbbec AstraKinect v2, Azure Kinect
WeaknessesSunlight, pattern interferenceMulti-path reflections, sunlight

How the depth error behaves

For any triangulation-based sensor (structured light, active or passive stereo) with focal length ff, baseline bb, and disparity dd, depth is Z=fb/dZ = fb/d. Differentiating shows why these sensors die with distance: a disparity error σd\sigma_d produces a depth error that grows quadratically with range,

σZZ2fbσd.\sigma_Z \approx \frac{Z^2}{f\,b}\,\sigma_d.

A sensor that is millimeter-accurate at 1 m can be off by several centimeters at 4 m. ToF sensors degrade differently — their random noise grows more gently with distance — but they suffer characteristic systematic errors instead: multi-path interference (emitted light bouncing off two surfaces before returning, biasing corners and concave regions) and flying pixels (spurious depth values straddling depth discontinuities). This is why RGB-D SLAM systems weight measurements by distance, truncate far readings, and filter depth edges.

Common devices

The trade-off and its fine print

The trade-off for getting metric scale for free is a set of hard physical limitations. Range is short (a few meters), so these sensors are indoor devices. Strong infrared ambient light (sunlight) washes out the emitted signal. Dark, absorbing, transparent, or specular materials return little or corrupted signal, leaving holes in the depth image. Depth noise also grows with distance — roughly quadratically for triangulation-based sensors — which is why RGB-D SLAM systems weight or truncate far measurements.

Common pitfalls

Why it matters for SLAM

Every design decision in RGB-D SLAM flows from the sensor: per-pixel metric depth enables dense frame-to-model tracking with ICP and volumetric TSDF or surfel fusion, while the sensor’s noise model, range limit, and material failure modes determine where those systems break. Knowing whether your depth comes from structured light, ToF, or active stereo tells you what environments the system can survive — and why RGB-D SLAM is an indoor technology while outdoor systems reach for stereo or LiDAR.