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 defineWith 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]
What Is Stereo Reconstruction? by MathWorks. Stereo Image Rectification and Disparity Map Computation: aligned rows, matching pixels and disparity-to-depth conversion
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.
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 storewhere 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]
Depth Map from Stereo Images in the OpenCV-Python tutorials. Code; disparity image; texture_threshold, speckle and uniqueness filters
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 .
Articles by others on the same topic
There are currently no matching articles.