Nima Kalantari
CSCE 448/748 - Computational Photography
Stereo
Many slides from Steve Seitz
Depth of a scene
Credit: PetaPixel
Depth of a scene
Credit: Li & Snavely
Depth ambiguity
Depth ambiguity
Images from Lana Lazebnik
Forced Perspective
Stereo Vision
What cues help us to perceive 3d shape and depth?
Shading
[Figure from Prados & Faugeras 2006]
Shading
Credit: scientificamerican.com
Texture
[From A.M. Loh. The recovery of 3-D structure using visual texture patterns. PhD thesis]
Focus/defocus
[figs from H. Jin and P. Favaro, 2002]
Images from same point of view, different camera parameters
3d shape / depth estimates
Motion
Figures from L. Zhang
http://www.brainconnection.com/teasers/?main=illusion/motion-shape
Stereo photography
Invented by Charles Wheatstone 1838
Stereo photography
Credit: http://www.johnsonshawmuseum.org/
Public Library, Stereoscopic Looking Room, Chicago, by Phillips, 1923
Basic Idea
Credit: https://people.well.com/user/jimg/stereo/stereo_list.html
Stereo
scene point
optical center
image plane
Stereo
Basic Principle: Triangulation
Assume parallel optical axes, known camera parameters (i.e., calibrated cameras). What is expression for Z?
Similar triangles (pl, P, pr) and (Ol, P, Or):
Geometry for a simple stereo system
disparity
+
̶
Depth from disparity
image I(x,y)
image I´(x´,y´)
Disparity map D(x,y)
(x´,y´)=(x+D(x,y), y)
So if we could find the corresponding points in two images, we could estimate relative depth…
General case, with calibrated cameras
Vs.
Stereo correspondence constraints
Stereo correspondence constraints
Geometry of two views constrains where the corresponding pixel for some image point in the first view must occur in the second view.
Epipolar constraint
Epipole
Epipolar Line
Baseline
Epipolar geometry
Epipole
Epipolar plane: plane containing baseline and world point
Epipole: point of intersection of baseline with image plane
Epipolar line: intersection of epipolar plane with the image plane
Baseline: line joining the camera centers
Epipolar constraint
This is useful because it reduces the correspondence problem to a 1D search along an epipolar line.
Image from Andrew Zisserman
Example
What do the epipolar lines look like?
Ol
Or
Ol
Or
1.
2.
Example: converging cameras
Figure from Hartley & Zisserman
Figure from Hartley & Zisserman
Example: parallel cameras
Where are the epipoles?
The correspondence problem
Epipolar geometry constrains our search, but we still have a difficult correspondence problem.
Basic stereo matching algorithm
Correspondence search
Matching cost
disparity
Left
Right
scanline
Correspondence search
Left
Right
scanline
SSD
Correspondence search
Left
Right
scanline
Norm. corr
Correspondence problem
Source: Andrew Zisserman
Parallel camera example: epipolar lines are corresponding image scanlines
Correspondence problem
Neighborhoods of corresponding points are similar in intensity patterns.
Source: Andrew Zisserman
Correlation-based window matching
Source: Andrew Zisserman
Textureless regions
Textureless regions are non-distinct; high ambiguity for matches.
Source: Andrew Zisserman
Effect of window size
Source: Andrew Zisserman
Effect of window size
W = 3
W = 20
+ More detail
+ Smoother disparity maps
Results with window search
Window-based matching
Ground truth
Data