This repository serves as a guide to Sony DepthSense technology, explaining how key values such as amplitude, phase shift, and depth are derived from the raw data captured by DepthSense pixels.
Note: This explanation is written from a software engineer’s perspective.
Time-of-Flight (ToF) technology operates by measuring the time it takes for emitted light to reflect off an object and return to the sensor. Typically, the emitted light is modulated as a sine wave. Upon returning to the sensor, the light exhibits a phase shift that is proportional to the distance between the sensor and the object.
Each DepthSense pixel consists of two taps, which I will refer to as tap
To facilitate understanding, a Desmos Simulation was created. The simulation models the accumulation of voltages on taps
-
$A$ and$B$ represent the voltages accumulated on each capacitor. - By calculating the difference between these values, we can remove the ambient light, always present in the returning light signal.
The Desmos Simulation calculates the difference between the raw depthsense_postprocessing.py
and it's available in this repository.