You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/source/components/nodes/tof.rst
+29-24Lines changed: 29 additions & 24 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -33,54 +33,57 @@ Inputs and Outputs
33
33
│ ├────────►
34
34
inputConfig | | amplitude
35
35
───────────►│ ├────────►
36
-
│ ToF │ error
36
+
│ ToF │ phase
37
37
input | ├────────►
38
38
───────────►│ │ intensity
39
39
│ ├────────►
40
40
└───────────┘
41
41
42
42
43
-
44
43
**Message types**
45
44
46
45
- ``inputConfig`` - :ref:`ToFConfig`
47
46
- ``input`` - :ref:`ImgFrame`
48
47
- ``depth`` - :ref:`ImgFrame` - Decoded depth map
49
48
- ``amplitude`` - :ref:`ImgFrame`
50
-
- ``intensity`` - :ref:`ImgFrame`
51
49
- ``phase`` - :ref:`ImgFrame` Phase image, useful for debugging (FP32)
50
+
- ``intensity`` - :ref:`ImgFrame`
52
51
53
52
ToF Settings
54
53
############
55
54
56
-
In :ref:`ToF depth` example we allow users to quickly configure ToF settings. These are mostly for debugging, and should be enabled:
57
-
58
-
- FPPN Correction; It's a process that corrects the fixed pattern noise (FPN) of the ToF sensor. It's enabled by default for best performance.
59
-
- Wiggle Correction: It's a process that corrects the wiggle effect of the ToF sensor. It's enabled by default for best performance.
60
-
- Temperature Correction: It's a process that corrects the temperature effect of the ToF sensor. It's enabled by default for best performance.
55
+
In :ref:`ToF depth` example we allow users to quickly configure ToF settings.
61
56
62
-
And these settings are up to the user:
57
+
Here are the most important settings:
63
58
64
59
* Optical Correction: It's a process that corrects the optical effect. When enabled, the ToF returns depth map (represented by Green Line on graph below) instead of distance, so it matches :ref:`StereoDepth` depth reporting. It does rectification and distance to depth conversion (Z-map).
65
-
* Phase Unwrapping - Process that corrects the phase wrapping effect of the ToF sensor. You can set it to [0..5 are optimized]. The higher the number, the longer the ToF range, but it also increases the noise.
60
+
* Phase Unwrapping - Process that corrects the phase wrapping effect of the ToF sensor. You can set it to [0..5 are optimized]. The higher the number, the longer the ToF range, but it also increases the noise. Approximate max distance (for exact value, see :ref:`Max distance` below):
66
61
67
-
* `0` - Disabled, up to ~1.5 meters
68
-
* `1` - Up to ~3 meters
69
-
* `2` - Up to ~4.5 meters
70
-
* `3` - Up to ~6 meters
71
-
* `4` - Up to ~7.5 meters
62
+
* `0` - Disabled, up to ~1.87 meters
63
+
* `1` - Up to ~3.75 meters
64
+
* `2` - Up to ~5.62 meters
65
+
* `3` - Up to ~7.5 meters
66
+
* `4` - Up to ~9.37 meters
72
67
73
68
* Burst mode: When enabled, ToF node won't reuse frames, as shown on the graph below. It's related to post-processing of the ToF frames, not the actual sensor/projector. It's disabled by default.
74
69
* Phase shuffle Temporal filter: Averages shuffled and non-shuffled frames of the same modulation frequency to reduce noise. It's enabled by default. You can disable it to reduce :ref:`ToF motion blur` and system load.
75
70
71
+
These are mostly for debugging, and should be enabled:
72
+
73
+
- FPPN Correction; It's a process that corrects the fixed pattern noise (FPN) of the ToF sensor. It's enabled by default for best performance.
74
+
- Wiggle Correction: It's a process that corrects the wiggle effect of the ToF sensor. It's enabled by default for best performance.
75
+
- Temperature Correction: It's a process that corrects the temperature effect of the ToF sensor. It's enabled by default for best performance.
If the time it takes for the light to travel from ToF sensor and back exceeds the period of the emitted wave (1.5m or 1.8m), the resulting measurement will "wrap" back to a lower value. This is called phase wrapping.
86
+
If the time it takes for the light to travel from ToF sensor and back exceeds the period of the emitted wave (1.5m or 1.87m), the resulting measurement will "wrap" back to a lower value. This is called phase wrapping.
84
87
It's similar to how a clock resets after 12 hours. Phase unwrapping is possible as our ToF has two different modulation frequencies (80Mhz and 100MHz).
85
88
86
89
Phase unwrapping aims to correct this by allowing the sensor to interpret longer distances without confusion. It uses algorithms to keep track of how many cycles (round trips of the wave) have occurred,
@@ -93,25 +96,27 @@ To reduce motion blur, we recommend these settings:
93
96
94
97
- Increase camera FPS. It goes up to 160 FPS, which causes frame capture to be the fastest (6.25ms between frames). This will reduce motion blur as ToF combines multiple frames to get the depth. Note that 160FPS will increase system load significantly (see :ref:`Debugging <Debugging DepthAI pipeline>`). Note also that higher FPS -> lower exposure times, which can increase noise.
95
98
- Disable phase shuffle temporal filter. This will introduce more noise.
96
-
- Disable phase unwrapping. This will reduce max distance to 1.5 meters, so about 1 cubic meter of space will be visible.
99
+
- Disable phase unwrapping. This will reduce max distance to 1.87 meters, so about 1 cubic meter of space will be visible.
97
100
- Enable burst mode. This is irrelevant if shuffle filter and phase unwrapping are disabled (see diagram above). When enabled, ToF node won't reuse frames (lower FPS).
98
101
102
+
In the diagram above, the less frames are combined (bottom of the diagram), the less motion blur there is. The more frames are combined (top of the diagram), there's more filtering (better accuracy) but it results in more motion blur.
103
+
99
104
Max distance
100
105
############
101
106
102
-
Maximum ToF distance depends on the phase unwrapping level and modulation frequency. The formula for calculating the maximum distance is:
107
+
Maximum ToF distance depends on the modulation frequency and the phase unwrapping level. If phase unwrapping is enabled,
108
+
max distance is the larger of both modulation frequencies (so max distance at 80MHz). Here's the formula:
103
109
104
110
.. math::
105
111
:nowrap:
106
112
107
113
\begin{align*}
108
114
c & = 299792458.0\quad\text{//! speed of light in m/s} \\
109
-
MAX\_80MHZ\_MM & = \frac{c}{80000000\times2} \times1000\quad\text{//! convert speed of light to mm/160ns} \\
MAX\_DIST\_80MHZ & = (\text{phaseUnwrappingLevel} + 1) \times1.5\times1000 + \frac{\text{phaseUnwrapErrorThreshold}}{2} \quad\text{//! corrected formula in mm for 80 MHz} \\
112
-
MAX\_100MHZ\_MM & = \frac{c}{100000000\times2} \times1000\quad\text{//! convert speed of light to mm/200ns} \\
MAX\_DIST\_100MHZ & = (\text{phaseUnwrappingLevel} + 1) \times1.5\times1000 + \frac{\text{phaseUnwrapErrorThreshold}}{2} \quad\text{//! corrected formula in mm for 100 MHz} \\
Copy file name to clipboardExpand all lines: docs/source/samples/ToF/tof_depth.rst
+11-11Lines changed: 11 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,17 +17,17 @@ on the ToF sensor.
17
17
18
18
With keyboard you can configure ToF settings:
19
19
20
-
- FPPN Correction; Turn on/off with `f`. It's a process that corrects the fixed pattern noise (FPN) of the ToF sensor. Should be enabled.
21
-
- Wiggle Correction: Turn on/off with `w`. It's a process that corrects the wiggle effect of the ToF sensor. Should be enabled.
22
-
- Temperature Correction: Turn on/off with `t`. It's a process that corrects the temperature effect of the ToF sensor. Should be enabled.
23
-
- Optical Correction: Turn on/off with `o`. It's a process that corrects the optical effect (On -> ToF returns distance represented by Green Line), so it matches stereo depth reporting.
24
-
- Phase Unwrapping - Process that corrects the phase wrapping effect of the ToF sensor. The higher the number, the longer the ToF range, but it also increases the noise.
25
-
- `0` - Disabled, up to ~1.5 meters
26
-
- `1` - Up to ~3 meters
27
-
- `2` - Up to ~4.5 meters
28
-
- `3` - Up to ~6 meters
29
-
- `4` - Up to ~7.5 meters
30
-
- `5` - Up to ~9 meters (increased noise - not recommended for most applications)
20
+
* *FPPN Correction*; Turn on/off with `f`. It's a process that corrects the fixed pattern noise (FPN) of the ToF sensor. Should be enabled.
21
+
* *Wiggle Correction*: Turn on/off with `w`. It's a process that corrects the wiggle effect of the ToF sensor. Should be enabled.
22
+
* *Temperature Correction*: Turn on/off with `t`. It's a process that corrects the temperature effect of the ToF sensor. Should be enabled.
23
+
* *Optical Correction*: Turn on/off with `o`. It's a process that corrects the optical effect (On -> ToF returns distance represented by Green Line), so it matches stereo depth reporting.
24
+
* *Phase Unwrapping* - Process that corrects the phase wrapping effect of the ToF sensor. The higher the number, the longer the ToF range, but it also increases the noise.
0 commit comments