TL;DR
Have you ever taken a photo under fluorescent lights and noticed weird dark stripes across the image? Instead of treating that rolling shutter artifact as a nuisance, Roll2Depth turns it into a physical yardstick. By pairing a standard smartphone camera with a cheap flickering LED, this system embeds real-world distance cues directly into a single photo—allowing AI models to measure exact metric depth in brand-new environments without needing to know anything about the camera’s lens.
What Problem Does This Paper Address?
Look at a single 2D photo with one eye closed: is that a real parked car 20 meters away, or a matchbox toy 20 centimeters from the lens? This scale ambiguity is the central headache of monocular metric depth estimation—predicting exact, real-world distances (in meters) for every pixel in a single RGB image.
Modern neural networks have gotten astonishingly good at predicting relative (or affine-invariant) depth: knowing that the coffee mug is in front of the laptop, which is in front of the wall. However, turning that relative layout into metric measurements in unseen, "zero-shot" environments usually requires knowing the camera's intrinsic parameters (like focal length). In the wild—think crowd-sourced videos, consumer drones, or uncalibrated robot vacuums—camera metadata is often noisy, incomplete, or completely missing. Without it, passive depth models lose their sense of scale.
Methods
Instead of relying on metadata or expensive hardware like LiDAR, the authors turn to basic physics. Almost every commercial CMOS camera uses a rolling shutter, exposing the sensor sequentially row by row rather than all at once. When you illuminate a room with a high-frequency flickering light (imperceptible to human eyes), some sensor rows catch the light "on" while others catch it "off," painting alternating bright and dark horizontal stripes across the image.
Because light intensity drops off with the square of distance (the inverse-square law), the brightness contrast of these stripes directly encodes how far away objects are! Roll2Depth extracts and uses this physical ruler in a three-stage pipeline:
- Physical Cue Extraction (New): A progressive residual network disentangles the striped input image into a clean ambient image and the isolated stripe pattern. Notably, it uses a 1D Fourier transform loss along the vertical axis to lock onto the row-wise periodicity of the stripes. Using off-the-shelf estimators for surface normals and albedo (surface color) alongside a calibrated light-power ratio, it normalizes the stripes into a pure, inverse-square depth prior.
- Relative Depth Estimation (Standard): The clean image is fed into Marigold, a frozen, state-of-the-art model that predicts an accurate relative depth map (up to an unknown global scale and shift).
- Affine-to-Metric Transformation (New): A Vision Transformer (initialized from DINOv2) looks at both the relative depth map and the normalized rolling shutter cue. Two specialized "BinHeads" then use probability-weighted bins to stably regress the exact global
scaleandshiftscalars needed to snap the relative map into true metric meters.
Datasets
- Training: Models are trained on NYU Depth v2 (indoor RGB-D scenes), using an analytical lighting model to synthetically inject realistic rolling shutter stripes.
- Synthetic Zero-Shot Evaluation: Tested on four unseen indoor benchmarks—SUN RGB-D, iBims-1, DIODE Indoor, and HyperSim—also augmented with synthetic stripes.
- New Real-World Dataset: Because smartphone apps restrict high-frequency flashlight control, the authors built a custom rig pairing a smartphone camera (1/2000s shutter), an Intel RealSense D455 stereo depth camera (for ground truth), and an Arduino-driven 5W LED flickering at 1 kHz. They collected 647 real-world indoor triplets (striped RGB, clean RGB, and ground-truth depth).
Key Insights and Ideas
- Single-shot temporal demultiplexing: Measuring how a scene looks with and without active lighting normally requires taking two consecutive photos—a nightmare if anything moves. A rolling shutter captures both lighting states simultaneously across adjacent pixel rows in a single exposure.
- Zero synchronization required: Unlike Time-of-Flight (ToF) sensors that require nanosecond-level clock synchronization between the light emitter and the camera, Roll2Depth needs no sync wire between the LED and the sensor.
- Don't solve physics from scratch—anchor the AI: Purely analytical inverse-square math breaks down in messy real-world rooms. Conversely, pure AI guesses global scale poorly. Using the physical cue strictly to find the two numbers (
scaleandshift) needed to anchor a strong relative depth model gives you the best of both worlds.
Key Results
Across all four synthetic zero-shot benchmarks, Roll2Depth ranks first against state-of-the-art passive baselines (including ZoeDepth, Metric3D, UniDepth, MoGe-2, and DepthPro), even when baselines are given clean, unstriped images:
- On iBims-1, Roll2Depth reaches 92.1% $\delta_1$ accuracy (pixels within 25% of true depth) and 0.406m RMSE, comfortably ahead of DepthPro (83.7% $\delta_1$, 0.510m RMSE).
- On DIODE Indoor, it lowers RMSE to 0.593m compared to DepthPro's 0.738m and UniDepth-V's 0.760m.
- On the real-world smartphone dataset, Roll2Depth generalizes cleanly from synthetic training to physical hardware. In Scene 2, it hits 76.9% $\delta_1$ accuracy (vs. second-best UniDepth-C at 61.8%) and the lowest absolute relative error (0.407). Ablation studies confirm that removing either the cue-extraction network or the bin-based regression causes sharp accuracy drops across all datasets.
Limitations and Future Work
- Indoor and range limits: Because light attenuates rapidly with distance ($1/d^2$) and gets washed out by bright sunlight, Roll2Depth is currently validated only indoors. Taking it outdoors (e.g., modulating car headlights) will require modeling directional beams and testing effective sensing ranges.
- Shiny surfaces and external dependencies: The physics model assumes Lambertian (matte) surfaces and relies on external estimators for surface normals and albedo, plus known light-power ratios. Specular highlights (mirrors, glossy floors) or weak signals can corrupt the extracted cue.
- Next steps: The authors suggest adding a per-pixel uncertainty head to automatically down-weight shiny, noisy, or poorly lit regions when the ViT calculates global scale and shift.
Summary updated