Depth map 2026-11-05
A depth map assigns a distance-related value to each accepted image location. The geometry must specify whether this means depth along the camera axis or Euclidean distance along the viewing ray. Units, missing values and the coordinate frame are also part of the representation. In calibrated stereoscopy, converting a disparity map through the camera geometry produces depth estimates.[ref]
For an ideal camera, suppose a point has coordinates metres. Its axial depth is two metres, but its Euclidean distance from the camera center is metres. The same scene can thus yield different valid numerical maps under different conventions. A missing stereo correspondence requires an invalid-location marker rather than a fabricated depth. Camera calibration and measurement uncertainty determine how confidently accepted values describe the scene.
Disparity map 2026-11-05
A disparity map assigns an estimated stereo disparity to image locations having accepted matches in another view. For a horizontally rectified pair, a left-image map can store
where is the matching right-image horizontal coordinate. Constructing the map therefore requires stereo correspondence, rather than only reading individual pixel intensities. OpenCV's tutorial demonstrates block matching and shows how weak texture and spurious matches affect the result.[ref]
For matched coordinate origins, focal length 800 pixels and camera baseline 0.12 metres, valid disparities 20 and 40 pixels imply depths 4.8 and 2.4 metres. Thus a disparity map is not itself a metric depth map: its values must be interpreted using the calibrated geometry and representation. Rejected matches need an explicit validity convention. A displayed dark patch can mean an unavailable match rather than an infinitely distant surface, and an encoded invalid value must not be blindly substituted into .
Occlusion in stereo vision occurs when a scene feature visible from one camera is hidden behind another surface from the second viewpoint. Such a feature has no visible partner, even if camera calibration is exact. Stereo correspondence must allow unmatched locations instead of forcing every image location to have a partner.[ref]
Consider a nearby post in front of a distant wall. Moving the viewpoint sideways shifts the post's projection more than the wall's because their depths differ. A strip of wall exposed beside the post in one image can therefore be covered in the other. Matching that strip to the post invents a depth belonging to the wrong surface. Missing-value masks and consistency checks can help represent this limitation, while smoothing a disparity map across the boundary can conceal it rather than recover the hidden wall.
Stereo correspondence 2026-11-05
Stereo correspondence identifies image positions in two views that depict the same scene point. This is the matching step needed before stereoscopic triangulation can recover that point. Epipolar geometry restricts a candidate match to an epipolar line; after horizontal stereo rectification, that search follows a corresponding image row.[ref]
For example, matching a corner at horizontal coordinate 120 in the left view with coordinate 96 in the right gives stereo disparity 24 pixels. A repeated window pattern might offer equally plausible candidates at 96 and 72, producing different inferred depths. Geometry alone does not choose the correct window. A foreground object can also hide the feature in one view: occlusion in stereo vision then prevents a visible match. Texture, agreement of nearby matches and explicit rejection of ambiguous locations supply evidence beyond mere proximity along a row. A confident disparity map must represent locations where stereo correspondence failed as well as those where it succeeded.
Stereo disparity 2026-11-05
Stereo disparity is the difference between the image positions of the same scene feature in two views. For an ideal horizontally aligned pair, use signed horizontal coordinates with matched principal points and define
With the orientation and camera baseline convention of stereoscopic triangulation, a point in front of the cameras has : stereo disparity measures inverse depth, rather than depth itself. Halving doubles when the camera baseline and focal length stay fixed.
A disparity map assigns this difference to matched image locations. Finding the matches is a separate stereo correspondence problem. A repeated pattern can give several plausible matches; a feature hidden from one camera has no visible partner. A small measured stereo disparity is therefore not, by itself, proof of a distant object: the match and calibration must also be credible.[ref]
The ideal relation also explains why far-away reconstruction becomes sensitive to measurement error. Differentiating gives ; the first-order propagation of uncertainty is . Thus equal disparity errors produce larger depth errors at greater depth. The example and curves under stereoscopy quantify this effect.