Stereo baseline
How it works
The two cameras capture the same scene from slightly different positions separated by the baseline B. After calibration and rectification, corresponding points lie on the same image rows and their horizontal shift is the disparity d. From similar-triangle geometry, Z = f·B/d — depth is inversely proportional to disparity and directly proportional to the product of focal length and baseline. Depth error grows with the square of distance and shrinks with the baseline: ΔZ ≈ (Z²/(f·B))·Δd, where Δd is the disparity-estimation uncertainty. Increasing the baseline (or focal length) therefore improves accuracy at long range but simultaneously raises the minimum measurable distance and enlarges regions visible to only one camera (occlusions).
Problem solved
Passive stereo depth estimation must turn two 2D images into a 3D distance. The stereo baseline controls how sensitive that mapping is and over what range it works — too small a baseline yields noisy, coarse depth at distance, while too large a baseline makes near objects unmeasurable. Choosing the baseline addresses the problem of matching depth range and accuracy to a specific application.
Implementation
A large baseline increases the minimum measurable distance and occlusion zones; near objects produce disparity exceeding the search range and get no depth estimate.
A small baseline yields small disparity for distant objects, making depth noisy and heavily quantized.
Because Z is proportional to B, an error in the measured baseline directly produces a proportional scale error in all distances.
Hyperparameters (configurable axes)
Metric distance between the cameras' optical centers. Linearly scales measured depth and sets the range-versus-accuracy trade-off.
Focal length in pixels; together with the baseline it forms the numerator of the depth equation Z = f·B/d.
Maximum disparity considered by the matching algorithm; bounds the minimum measurable distance, which grows with the baseline.