Skip to content

Commit c476fee

Browse files
committed
Update max tof distance
1 parent 24222d5 commit c476fee

File tree

3 files changed

+13
-13
lines changed

3 files changed

+13
-13
lines changed

docs/source/components/nodes/tof.rst

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,11 @@ Here are the most important settings:
5959
* 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).
6060
* 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):
6161

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
62+
* `0` - Disabled, up to ~1.87 meters (utilizing 80MHz modulation frequency)
63+
* `1` - Up to ~3 meters
64+
* `2` - Up to ~4.5 meters
65+
* `3` - Up to ~6 meters
66+
* `4` - Up to ~7.5 meters
6767

6868
* 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.
6969
* 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.
@@ -96,7 +96,7 @@ To reduce motion blur, we recommend these settings:
9696

9797
- 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.
9898
- Disable phase shuffle temporal filter. This will introduce more noise.
99-
- Disable phase unwrapping. This will reduce max distance to 1.87 meters, so about 1 cubic meter of space will be visible.
99+
- Disable phase unwrapping. This will reduce max distance to 1.87 meters (utilizing 80MHz modulation frequency), so about 1 cubic meter of space will be visible.
100100
- 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).
101101

102102
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.
@@ -105,7 +105,7 @@ Max distance
105105
############
106106

107107
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:
108+
max distance is the shorter of both modulation frequencies (so max distance at 100MHz). Here's the formula:
109109

110110
.. math::
111111
:nowrap:
@@ -116,7 +116,7 @@ max distance is the larger of both modulation frequencies (so max distance at 80
116116
MAX\_100MHZ\_M & = \frac{c}{100000000 \times 2} = 1.498 \, \text{m} \\
117117
MAX\_DIST\_80MHZ_M & = (\text{phaseUnwrappingLevel} + 1) \times 1.873 + \frac{\text{phaseUnwrapErrorThreshold}}{2} \\
118118
MAX\_DIST\_100MHZ_M & = (\text{phaseUnwrappingLevel} + 1) \times 1.498 + \frac{\text{phaseUnwrapErrorThreshold}}{2} \\
119-
MAX\_DIST\_PHASE\_UNWRAPPING\_M & = MAX\_DIST\_80MHZ\_M
119+
MAX\_DIST\_PHASE\_UNWRAPPING\_M & = MAX\_DIST\_100MHZ\_M
120120
\end{align*}
121121
122122
Usage

docs/source/samples/ToF/tof_depth.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@ With keyboard you can configure ToF settings:
2424
* *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.
2525

2626
* `0` - Disabled, up to ~1.87 meters
27-
* `1` - Up to ~3.75 meters
28-
* `2` - Up to ~5.62 meters
29-
* `3` - Up to ~7.5 meters
30-
* `4` - Up to ~9.37 meters
27+
* `1` - Up to ~3 meters
28+
* `2` - Up to ~4.5 meters
29+
* `3` - Up to ~6 meters
30+
* `4` - Up to ~7.5 meters
3131

3232
.. image:: /_static/images/components/tof-optical-correction.png
3333

examples/ToF/tof_depth.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ def create_pipeline():
109109

110110
imgFrame = qDepth.get() # blocking call, will wait until a new data has arrived
111111
depth_map = imgFrame.getFrame()
112-
max_depth = (tofConfig.phaseUnwrappingLevel + 1) * 1874 # 80MHz modulation freq.
112+
max_depth = (tofConfig.phaseUnwrappingLevel + 1) * 1500 # 100MHz modulation freq.
113113
depth_colorized = np.interp(depth_map, (0, max_depth), (0, 255)).astype(np.uint8)
114114
depth_colorized = cv2.applyColorMap(depth_colorized, cvColorMap)
115115

0 commit comments

Comments
 (0)