CW-iToF Multi-Frequency Depth Precision

How sensor bit depth and modulation frequencies affect depth measurement precision for a single pixel

Depth Precision vs Distance

Y:

Model

Measurement

A continuous-wave indirect time-of-flight (CW-iToF) sensor emits sinusoidally modulated light at frequency f and captures four correlation samples per pixel (4-tap homodyne). Each raw sample is an intensity measurement—a photon count, the same type of observation as any camera pixel:

where is the DC component (ambient light + active illumination DC + dark current), is the modulated return amplitude at distance d, and is the phase delay encoding depth. The amplitude falls off with distance due to the inverse-square law:

Single-frequency depth recovery

Differencing opposite taps cancels the DC component and yields in-phase and quadrature signals:

The phase (and thus depth) is recovered via:

Each frequency has an unambiguous range beyond which the phase wraps: .

Multi-frequency phase unwrapping

Multiple frequencies extend the unambiguous range. Via the Chinese Remainder Theorem, the combined unambiguous range is:

Choosing frequencies with small GCD gives a large unambiguous range (e.g., 20, 60, 100 MHz → GCD = 20 MHz → R = 7.5 m).

Multi-frequency depth estimation

Given N frequencies, each producing a phasor (IiQi) with observed phase θi = atan2(QiIi) and observed amplitude Ri = √(Ii² + Qi²), the joint maximum likelihood depth estimate maximizes the weighted sum of cosines:

The weight wi = Ri uses the observed amplitude as a confidence measure (low R = noisy phasor, downweighted). This objective is periodic: the cosines from different frequencies constructively interfere at the correct depth and destructively interfere elsewhere, naturally resolving phase wrapping as part of the optimization. The widget evaluates this via a coarse-to-fine grid search over the combined unambiguous range.

The alternative inverse-variance weighting is a linearized approximation: estimate depth independently per frequency, then combine via . This is the MLE in the high-SNR regime where phase errors are small and unwrapping is reliable, but it fails catastrophically when noise causes wrapping errors because it treats each frequency’s estimate as independent.

The widget shows both curves simultaneously. Where they agree, unwrapping is reliable and both give the true precision. Where the joint MLE curve rises above the inverse-variance curve, phase unwrapping is failing — the inverse-variance curve is an optimistic bound that ignores wrapping errors.

Monte Carlo simulation

The plotted curves are computed by Monte Carlo simulation of the actual quantized pipeline, not by analytical error propagation. For each trial:

  1. Generate true depth (with dither to sample all quantization bin positions)
  2. Compute the four continuous correlation samples for each frequency
  3. Add Poisson shot noise (signal-dependent: σ = √(α·Ck), where α = (2B−1)/full_well) and Gaussian read noise to each sample
  4. Quantize to B-bit integers (round + clamp to [0, 2B−1])
  5. Feed the integer differences into atan2
  6. Estimate depth (per-frequency atan2, and/or joint MLE argmax)
  7. Record depth error; report RMS over all trials

The RMS error over all trials gives σd at each distance. This captures effects that analytical formulas miss:

Analytical reference (linearized model)

For comparison, the linearized analytical model treats noise as continuous Gaussian and propagates it through atan2 via standard error propagation. Per-sample noise variance (ADC levels), combining quantization, shot noise, and read noise:

Phase precision (from error propagation through atan2; the I and Q difference variances are equal because the signal-dependent shot noise terms cancel to first order when summing opposite taps [1]):

Depth precision:

This gives a smooth d² curve that agrees with the MC at mid-range but misses clipping (close range) and discrete atan2 effects (low bit depth).

References

  1. R. Lange and P. Seitz, “Solid-state time-of-flight range camera,” IEEE J. Quantum Electronics, 37(3), pp. 390–397, 2001. — 4-tap homodyne correlation, atan2 phase recovery, analytical depth precision.
  2. A. D. Payne, A. P. P. Jongenelen, A. A. Dorrington, M. J. Cree, and D. A. Carnegie, “Multiple frequency range imaging to remove measurement ambiguity,” Proc. 9th Conf. Optical 3-D Measurement Techniques, Vienna, 2009. — Multi-frequency phase unwrapping, GCD-based unambiguous range.
  3. P. Hanji, F. Zhong, and R. K. Mantiuk, “Noise-aware merging of high dynamic range image stacks without camera calibration,” ECCV Workshops, LNCS 12537, pp. 376–391, 2020. — MLE combination of multiple measurements under Poisson-Gaussian noise; the iToF multi-frequency combination is structurally analogous (each frequency’s raw samples are photon counts with the same noise model).