5,337
edits
No edit summary |
|||
Line 13: | Line 13: | ||
Disparity is related to depth by the following formula: | Disparity is related to depth by the following formula: | ||
<math display="block">disparity = baseline * focal / depth</math> | <math display="block">disparity = baseline * focal / depth</math> | ||
* <math display="inline">focal</math> is the focal length in pixels. This is a correction factor for the resolution of the disparity. | * <math display="inline">focal</math> is the focal length in pixels. This is a correction factor for the resolution of the disparity. | ||
* <math | *: This can be calculated as <code>(height/2) * cot(fov_h/2)</code> | ||
* <math display="inline">baseline</math> is the distance between the camera positions. This should be in the same units as your depth. | |||
==Stereo Depth== | ==Stereo Depth== |