Skip to content

Commit b83bd0d

Browse files
committed
Updated disparity shift docs
1 parent 405b88f commit b83bd0d

File tree

1 file changed

+18
-3
lines changed

1 file changed

+18
-3
lines changed

docs/source/components/nodes/stereo_depth.rst

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -379,16 +379,31 @@ Disparity shift to lower min depth perception
379379
---------------------------------------------
380380

381381
Another option to perceive closer depth range is to use disparity shift. Disparity shift will shift the starting point
382-
of the disparity search, which will significantly decrease max depth perception, but it will also decrease min depth perception.
382+
of the disparity search, which will significantly decrease max depth (MazZ) perception, but it will also decrease min depth (MinZ) perception.
383+
Disparity shift can be combined with extended/subpixel/LR-check modes.
383384

384385
.. image:: https://user-images.githubusercontent.com/18037362/189375017-2fa137d2-ad6b-46de-8899-6304bbc6c9d7.png
385386

386-
**Left graph** shows min and max disparity and depth for OAK-D (7.5cm baseline, 800P resolution, ~70° HFOV) by default (disparity shift=0). Since hardware (stereo
387-
block) has a fixed 95 pixel disparity search, DepthAI will search from 0 pixels (depth=INF) to 95 pixels (depth=71cm).
387+
**Left graph** shows min and max disparity and depth for OAK-D (7.5cm baseline, 800P resolution, ~70° HFOV) by default (disparity shift=0). See :ref:`Calculate depth using disparity map`.
388+
Since hardware (stereo block) has a fixed 95 pixel disparity search, DepthAI will search from 0 pixels (depth=INF) to 95 pixels (depth=71cm).
388389

389390
**Right graph** shows the same, but at disparity shift set to 30 pixels. This means that disparity search will be from 30 pixels (depth=2.2m) to 125 pixels (depth=50cm).
390391
This also means that depth will be very accurate at the short range (**theoretically** below 5mm depth error).
391392

393+
**Limitations**:
394+
395+
- Because of the inverse relationship between disparity and depth, MaxZ will decrease much faster than MinZ as the disparity shift is increased. Therefore, it is **advised not to use a larger than necessary disparity shift**.
396+
- Tradeoff in reducing the MinZ this way is that objects at **distances farther away than MaxZ will not be seen**.
397+
- Because of the point above, **we only recommend using disparity shift when MaxZ is known**, such as having a depth camera mounted above a table pointing down at the table surface.
398+
- Output disparity map is not expanded, only the depth map. So if disparity shift is set to 50, and disparity value obtained is 90, the real disparity is 140.
399+
400+
**Compared to Extended disparity**, disparity shift:
401+
402+
- **(+)** Is faster, as it doesn't require an extra computation, which means there's also no extra latency
403+
- **(-)** Reduces the MaxZ (significantly), while extended disparity only reduces MinZ.
404+
405+
Disparity shift can be combined with extended disparity.
406+
392407
.. doxygenfunction:: dai::StereoDepthConfig::setDisparityShift
393408
:project: depthai-core
394409
:no-link:

0 commit comments

Comments
 (0)