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
Left-Right Check or LR-Check is used to remove incorrectly calculated disparity pixels due to occlusions at object borders (Left and Right camera views
96
+
**Left-Right Check** or LR-Check is used to remove incorrectly calculated disparity pixels due to occlusions at object borders (Left and Right camera views
77
97
are slightly different).
78
98
79
99
#. Computes disparity by matching in R->L direction
80
100
#. Computes disparity by matching in L->R direction
81
101
#. Combines results from 1 and 2, running on Shave: each pixel d = disparity_LR(x,y) is compared with disparity_RL(x-d,y). If the difference is above a threshold, the pixel at (x,y) in the final disparity map is invalidated.
82
102
103
+
You can use :code:`debugDispLrCheckIt1` and :code:`debugDispLrCheckIt2` debug outputs for debugging/fine-tuning purposes.
104
+
83
105
.. tab:: Extended Disparity
84
106
85
-
The :code:`extended disparity` allows detecting closer distance objects for the given baseline. This increases the maximum disparity search from 96 to 191, meaning the range is now: **[0..190]**.
107
+
**Extended disparity mode** allows detecting closer distance objects for the given baseline. This increases the maximum disparity search from 96 to 191, meaning the range is now: **[0..190]**.
86
108
So this cuts the minimum perceivable distance in half, given that the minimum distance is now :code:`focal_length * base_line_dist / 190` instead
87
109
of :code:`focal_length * base_line_dist / 95`.
88
110
89
111
#. Computes disparity on the original size images (e.g. 1280x720)
90
112
#. Computes disparity on 2x downscaled images (e.g. 640x360)
91
113
#. Combines the two level disparities on Shave, effectively covering a total disparity range of 191 pixels (in relation to the original resolution).
92
114
115
+
You can use :code:`debugExtDispLrCheckIt1` and :code:`debugExtDispLrCheckIt2` debug outputs for debugging/fine-tuning purposes.
116
+
93
117
.. tab:: Subpixel Disparity
94
118
95
-
Subpixel improves the precision and is especially useful for long range measurements. It also helps for better estimating surface normals.
119
+
**Subpixel mode** improves the precision and is especially useful for long range measurements. It also helps for better estimating surface normals.
96
120
97
121
Besides the integer disparity output, the Stereo engine is programmed to dump to memory the cost volume, that is 96 levels (disparities) per pixel,
98
-
then software interpolation is done on Shave, resulting a final disparity with 5 fractional bits, resulting in significantly more granular depth
99
-
steps (32 additional steps between the integer-pixel depth steps), and also theoretically, longer-distance depth viewing - as the maximum depth
100
-
is no longer limited by a feature being a full integer pixel-step apart, but rather 1/32 of a pixel. In this mode, stereo cameras perform: :code:`96 depth steps * 32 subpixel depth steps = 3,072 depth steps.`
101
-
Note that Subpixel and Extended Disparity are not yet supported simultaneously (which would result in :code:`191 * 32 = 6,112 depth steps`), but should be available in the near future (`Pull Request <https://github.com/luxonis/depthai-python/pull/347>`__).
122
+
then software interpolation is done on Shave, resulting a final disparity with 3 fractional bits, resulting in significantly more granular depth
123
+
steps (8 additional steps between the integer-pixel depth steps), and also theoretically, longer-distance depth viewing - as the maximum depth
124
+
is no longer limited by a feature being a full integer pixel-step apart, but rather 1/8 of a pixel. In this mode, stereo cameras perform: :code:`94 depth steps * 8 subpixel depth steps + 2 (min/max values) = 754 depth steps`
125
+
Note that Subpixel and Extended Disparity are not yet supported simultaneously.
102
126
103
127
For comparison of normal disparity vs. subpixel disparity images, click `here <https://github.com/luxonis/depthai/issues/184>`__.
104
128
@@ -138,12 +162,7 @@ Currently configurable blocks
138
162
Current limitations
139
163
###################
140
164
141
-
If one or more of the additional depth modes (:code:`lrcheck`, :code:`extended`, :code:`subpixel`) are enabled, then:
142
-
143
-
- median filtering is disabled on device
144
-
- with subpixel, if both :code:`depth` and :code:`disparity` are used, only :code:`depth` will have valid output
145
-
146
-
Otherwise, :code:`depth` output is **U16** (in millimeters) and median is functional.
165
+
- Median filtering is disabled when subpixel mode is set to 4 or 5 bits.
0 commit comments