1.4 KiB
1.4 KiB
title, created_date, updated_date, aliases, tags
| title | created_date | updated_date | aliases | tags |
|---|---|---|---|---|
| Computer Vision - Depth Perception | 2025-03-26 | 2025-03-26 |
Computer Vision - Depth Perception
Stereo Vision
Disparity Map
This blog article explains nicely what disparity maps are.
- The disparity is the apparent motion of objects between a pair of stereo images1 .
- The depth is inversely proportional to the disparity. If we know the arrangement of the cameras, then the disparity map can be converted into a depth map using triangulation.
- When disparity is near zero (far away) then small differences produce large depth differences. When disparity is large, small disparity differences do not change the depth significantly. Hence, stereo vision systems have high depth resolution only for objects relatively near the camera.
Correspondence Problem
To compute the disparity map we must first find out corresponding pixels of the two stereo images. Image rectification is used to
At OSD
disparity = (baseline * focal_length) / depth
DISPARITY_CONSTANT = baseline * focal length
-
Experiment: close one eye, then open the eye while closing the other eye and repeat. All objects close to you seem to move back and forth very fast, the objects that are far away seem to remain still. ↩︎