Title: Stereo part 2
1Stereo (part 2)
- Jim Rehg
- CS 4495/7495 Computer Vision
- Lecture 4
- Wed Aug 28, 2002
2Stereo Vision
Z(x, y) is depth at pixel (x, y) d(x, y) is
disparity
Left
Right
Matching correlation windows across scan lines
3Basic Stereo Geometry
(X, Y, Z)
L
R
W
f
B
xL
xR
How do matching errors affectthe depth error?
4Stereo Correspondence
- Search over disparity to find correspondences
- Range of disparities to search over can change
dramatically within a single image pair.
5Correspondence Using Correlation
Left
Right
scanline
SSD error
disparity
Left
Right
6Sum of Squared (Pixel) Differences
Left
Right
7Image Normalization
- Even when the cameras are identical models, there
can be differences in gain and sensitivity. - The cameras do not see exactly the same surfaces,
so their overall light levels can differ. - For these reasons and more, it is a good idea to
normalize the pixels in each window
8Images as Vectors
Unwrap image to form vector, using raster scan
order
Left
Right
row 1
row 2
Each window is a vectorin an m2
dimensionalvector space.Normalization
makesthem unit length.
row 3
9Image Metrics
(Normalized) Sum of Squared Differences
Normalized Correlation
10Correspondence Using Correlation
Left
Disparity Map
Images courtesy of Point Grey Research
Left
Right
11Stereo Results
- Trinocular stereo system available from Point
Gray Research for 5K (circa 97)
12Stereo Requirements
- Matching or scoring function
- Sum of squared (pixel) differences (SSD)
- Equivalent to normalized correlation
- Constraints
- Rectified images
- Match order constraint
- Search algorithm
- Dynamic programming
13Epipolar Geometry
- The epipolar geometry is the fundamental
constraint in stereo. - Rectification aligns epipolar lines with
scanlines
Epipolar plane
Epipolar line for p
Epipolar line for p
14Correspondence
- It is fundamentally ambiguous, even with stereo
constraints
Ordering constraint
and its failure