3D Photography: Stereo Vision
Kalin Kolev, Marc Pollefeys Spring 2013
http://cvg.ethz.ch/teaching/2013spring/3dphoto/
3D Photography: Stereo Vision Kalin Kolev, Marc Pollefeys Spring - - PowerPoint PPT Presentation
3D Photography: Stereo Vision Kalin Kolev, Marc Pollefeys Spring 2013 http://cvg.ethz.ch/teaching/2013spring/3dphoto/ Schedule (tentative) Feb 18 Introduction Feb 25 Lecture: Geometry, Camera Model, Calibration Mar 4 Lecture: Features,
http://cvg.ethz.ch/teaching/2013spring/3dphoto/
Feb 18 Introduction Feb 25 Lecture: Geometry, Camera Model, Calibration Mar 4 Lecture: Features, Tracking/Matching Mar 11
Project Proposals by Students
Mar 18 Lecture: Epipolar Geometry Mar 25
Lecture: Stereo Vision
Apr 1 Easter Apr 8 Short lecture “SfM / SLAM” + 2 papers Apr 15
Project Updates
Apr 22 Short lecture “Active Ranging, Structured Light” + 2 papers Apr 29 Short lecture “Volumetric Modeling” + 2 papers May 6 Short lecture “Mesh-based Modeling” + 2 papers May 13 Short lecture “Shape-from-X” + 2 papers May 20 Pentecost / White Monday May 27
Final Demos
http://cat.middlebury.edu/stereo/ Tsukuba dataset
(S lide from Pascal Fua)
1 2 3 4,5 6 1 2,3 4 5 6 2 1 3 4,5 6 1 2,3 4 5 6
surface slice surface as a path
surface slice surface as a path
bounding box
use reconstructed features to determine bounding box
constant disparity surfaces
Optimal path (dynamic programming ) Similarity measure (SSD or NCC) Constraints
Trade-off
Consider all paths that satisfy the constraints pick best using dynamic programming
Downsampling
(Gaussian pyramid)
Disparity propagation
Allows faster computation Deals with large disparity ranges
image I(x,y) image I´(x´,y´) Disparity map D(x,y)
(x´,y´)=(x+D(x,y),y)
(S lide from Pascal Fua)
(S lide from Pascal Fua)
(general formulation requires multi-way cut!)
(Boykov et al ICCV‘ 99) (Roy and Cox ICCV‘ 98)
Bring two views to standard stereo setup (moves epipole to ∞) (not possible when in/close to image)
~ image size
(calibrated)
Distortion minimization
(uncalibrated)
Polar re-paramet erizat ion around epipoles Requires only (orient ed) epipolar geomet ry Preserve lengt h of epipolar lines Choose ∆θ so t hat no pixels are compressed
rectified image
(Pollefeys et al. ICCV’99)
Works for all relative motions Guarantees minimal image size
polar rectification planar rectification
image pair
Does not work with standard Homography-based approaches
(S lide from Pascal Fua)
selected proportional to that depth
(Gallup et al., CVPR08)
Variable Baseline/Resolution Stereo: comparison
pixel of reference image
(Koch, Pollefeys and Van Gool. ECCV‘ 98)
Allows to compute robust texture
Collins’96; Roy and Cox’98 (GC); Yang et al.’02/’03 (GPU)
3D Reconstruction from Calibrated Images
Scene Volume
V
Input Images (Calibrated)
Discretized Scene Volume Input Images (Calibrated)
photo-consistent with images
Discretized Scene Volume
N voxels C colors
3
All Scenes (CN3) Photo-Consistent Scenes True Scene
Theoretical Questions
Identify class of all photo-consistent scenes
Practical Questions
How do we compute photo-consistent models?
Volume intersection [Martin 81, Szeliski 93]
Voxel coloring algorithm [Seitz & Dyer 97]
Space carving [Kutulakos & Seitz 98]
Reconstruction from Silhouettes (C = 2)
Binary Images
Backproject each silhouette Intersect backprojected volumes
Voxel Algorithm for Volume Intersection
Color voxel black if on silhouette in every image
O(MN3), for M images, N3 voxels Don’t have to search 2N3 possible scenes!
Volume intersection [Martin 81, Szeliski 93]
Voxel coloring algorithm [Seitz & Dyer 97]
Space carving [Kutulakos & Seitz 98]
Layers
Scene Traversal
Depth-Order Constraint
Scene outside convex hull of camera centers
cameras inside scene
cameras above scene
Calibrated Turntable
360° rotation (21 images)
Selected Dinosaur Images Selected Flower Images
Dinosaur Reconstruction
72 K voxels colored 7.6 M voxels tested 7 min. to compute
Flower Reconstruction
70 K voxels colored 7.6 M voxels tested 7 min. to compute
A view-independent depth order may not exist
p q
Unconstrained camera positions Unconstrained scene geometry/topology
Volume intersection [Martin 81, Szeliski 93]
constraints
Voxel coloring algorithm [Seitz & Dyer 97]
Space carving [Kutulakos & Seitz 98]
Image 1 Image N
…...
Initialize to a volume V containing the true scene Repeat until convergence Choose a voxel on the current surface Carve if not photo-consistent Project to visible input images
Consistency Property
The resulting shape is photo-consistent
all inconsistent points are removed
Convergence Property
Carving converges to a non-empty shape
a point on the true scene is never removed
The Photo Hull is the UNION of all photo-consistent scenes in V
True Scene V Photo Hull V
hardware
True Scene Reconstruction
I nput I mage (1 of 45) Reconstruction Reconstruction Reconstruction
I nput I mage (1 of 100) Views of Reconstruction
Coarse-to-fine Reconstruction
Hardware-Acceleration
projections
Limitations
voxel occluded
Broadhurst et al. ICCV’01
I
Light Intensity Object Color
N
Normal vector
L
Lighting vector
V
View Vector
R
Reflection vector
color of the light Diffuse color Saturation point 1 1 1
Reflected Light in RGB color space Dielectric Materials (such as plastic and glass)
(Yang, Pollefeys & Welch 2003)
Extended photoconsistency:
Our result
ρ(x)
constant offset)
middle volume
photoconsistency cost to voxels
Slides from [Vogiatzis et al. CVPR2005]
Source Sink
Slides from [Vogiatzis et al. CVPR2005]
Source Sink Cost of a cut ≈ ∫∫ ρ(x) dS S
cut ⇔ 3D Surface S
[Boykov and Kolmogorov ICCV 2001]
Slides from [Vogiatzis et al. CVPR2005]
Source Sink Minimum cut ⇔ Minimal 3D Surface under photo-consistency metric
[Boykov and Kolmogorov ICCV 2001]
Slides from [Vogiatzis et al. CVPR2005]
surface for
Slides from [Vogiatzis et al. CVPR2005]
Self occlusion
Slides from [Vogiatzis et al. CVPR2005]
Self occlusion
Slides from [Vogiatzis et al. CVPR2005]
N threshold on angle between normal and viewing direction threshold= ~60°
Slides from [Vogiatzis et al. CVPR2005]
Normalised cross correlation Use all remaining cameras pair wise
Slides from [Vogiatzis et al. CVPR2005]
Average NCC = C Voxel score ρ = 1 - exp( -tan2[π(C-1)/4] / σ2 )
0 ≤ ρ ≤ 1 σ = 0.05 in all experiments
Slides from [Vogiatzis et al. CVPR2005]
Slides from [Vogiatzis et al. CVPR2005]
Slides from [Vogiatzis et al. CVPR2005]
Slides from [Vogiatzis et al. CVPR2005]
Slides from [Vogiatzis et al. CVPR2005]
Slides from [Vogiatzis et al. CVPR2005]
L.D. Cohen and I. Cohen. Finite-element methods for active contour models and balloons for 2-d and 3-d
Slides from [Vogiatzis et al. CVPR2005]
L.D. Cohen and I. Cohen. Finite-element methods for active contour models and balloons for 2-d and 3-d images. PAMI, 15(11):1131– 1147, November 1993.
ρ(x) dS - λ ∫∫∫ dV S V
Slides from [Vogiatzis et al. CVPR2005]
Slides from [Vogiatzis et al. CVPR2005]
Slides from [Vogiatzis et al. CVPR2005]
wij SOURCE
h j i
[Boykov and Kolmogorov ICCV 2001]
Slides from [Vogiatzis et al. CVPR2005]
102
Address Memory and Computational Overhead
(Sinha et. al. 2007)
– Compute Photo-consistency only where it is needed – Detect Interior Pockets using Visibility
http://vision.middlebury.edu/mview/