Geometry 3: Stereo Reconstruction Introduction to Computer Vision Ronen Basri Weizmann Institute of Science.

Slides:



Advertisements
Similar presentations
The fundamental matrix F
Advertisements

Lecture 11: Two-view geometry
3D reconstruction.
Geometry 2: A taste of projective geometry Introduction to Computer Vision Ronen Basri Weizmann Institute of Science.
Stereo Vision Reading: Chapter 11
Gratuitous Picture US Naval Artillery Rangefinder from World War I (1918)!!
Stereo Many slides adapted from Steve Seitz. Binocular stereo Given a calibrated binocular stereo pair, fuse it to produce a depth image Where does the.
MASKS © 2004 Invitation to 3D vision Lecture 7 Step-by-Step Model Buidling.
Geometry 1: Projection and Epipolar Lines Introduction to Computer Vision Ronen Basri Weizmann Institute of Science.
Lecture 8: Stereo.
Stereo.
Epipolar lines epipolar lines Baseline O O’ epipolar plane.
Camera calibration and epipolar geometry
Last Time Pinhole camera model, projection
Stereo and Epipolar geometry
Geometry of Images Pinhole camera, projection A taste of projective geometry Two view geometry:  Homography  Epipolar geometry, the essential matrix.
Multiple View Geometry : Computational Photography Alexei Efros, CMU, Fall 2005 © Martin Quinn …with a lot of slides stolen from Steve Seitz and.
Computer Vision : CISC 4/689 Adaptation from: Prof. James M. Rehg, G.Tech.
Epipolar geometry. (i)Correspondence geometry: Given an image point x in the first view, how does this constrain the position of the corresponding point.
Stereo & Iterative Graph-Cuts Alex Rav-Acha Vision Course Hebrew University.
Lecture 21: Multiple-view geometry and structure from motion
Multiple-view Reconstruction from Points and Lines
Stereopsis Mark Twain at Pool Table", no date, UCR Museum of Photography.
The plan for today Camera matrix
Stereo and Structure from Motion
Previously Two view geometry: epipolar geometry Stereo vision: 3D reconstruction epipolar lines Baseline O O’ epipolar plane.
Stereo Computation using Iterative Graph-Cuts
3D Computer Vision and Video Computing 3D Vision Lecture 14 Stereo Vision (I) CSC 59866CD Fall 2004 Zhigang Zhu, NAC 8/203A
Lec 21: Fundamental Matrix
CSE473/573 – Stereo Correspondence
Announcements PS3 Due Thursday PS4 Available today, due 4/17. Quiz 2 4/24.
COMP322/S2000/L271 Stereo Imaging Ref.V.S.Nalwa, A Guided Tour of Computer Vision, Addison Wesley, (ISBN ) Slides are adapted from CS641.
Multiple View Geometry : Computational Photography Alexei Efros, CMU, Fall 2006 © Martin Quinn …with a lot of slides stolen from Steve Seitz and.
Stereo matching “Stereo matching” is the correspondence problem –For a point in Image #1, where is the corresponding point in Image #2? C1C1 C2C2 ? ? C1C1.
3-D Scene u u’u’ Study the mathematical relations between corresponding image points. “Corresponding” means originated from the same 3D point. Objective.
55:148 Digital Image Processing Chapter 11 3D Vision, Geometry Topics: Basics of projective geometry Points and hyperplanes in projective space Homography.
Multi-view geometry. Multi-view geometry problems Structure: Given projections of the same 3D point in two or more images, compute the 3D coordinates.
Computer Vision Spring ,-685 Instructor: S. Narasimhan WH 5409 T-R 10:30am – 11:50am Lecture #15.
Stereo Readings Trucco & Verri, Chapter 7 –Read through 7.1, 7.2.1, 7.2.2, 7.3.1, 7.3.2, and 7.4, –The rest is optional. Single image stereogram,
Automatic Camera Calibration
Computer vision: models, learning and inference
Lecture 11 Stereo Reconstruction I Lecture 11 Stereo Reconstruction I Mata kuliah: T Computer Vision Tahun: 2010.
Structure from images. Calibration Review: Pinhole Camera.
Lecture 12 Stereo Reconstruction II Lecture 12 Stereo Reconstruction II Mata kuliah: T Computer Vision Tahun: 2010.
Stereo Vision Reading: Chapter 11 Stereo matching computes depth from two or more images Subproblems: –Calibrating camera positions. –Finding all corresponding.
Metrology 1.Perspective distortion. 2.Depth is lost.
Stereo Many slides adapted from Steve Seitz.
Computer Vision, Robert Pless
Lec 22: Stereo CS4670 / 5670: Computer Vision Kavita Bala.
Announcements Project 3 due Thursday by 11:59pm Demos on Friday; signup on CMS Prelim to be distributed in class Friday, due Wednesday by the beginning.
Computer Vision Stereo Vision. Bahadir K. Gunturk2 Pinhole Camera.
CSE 185 Introduction to Computer Vision Stereo. Taken at the same time or sequential in time stereo vision structure from motion optical flow Multiple.
Bahadir K. Gunturk1 Phase Correlation Bahadir K. Gunturk2 Phase Correlation Take cross correlation Take inverse Fourier transform  Location of the impulse.
stereo Outline : Remind class of 3d geometry Introduction
Feature Matching. Feature Space Outlier Rejection.
55:148 Digital Image Processing Chapter 11 3D Vision, Geometry Topics: Basics of projective geometry Points and hyperplanes in projective space Homography.
Solving for Stereo Correspondence Many slides drawn from Lana Lazebnik, UIUC.
55:148 Digital Image Processing Chapter 11 3D Vision, Geometry Topics: Basics of projective geometry Points and hyperplanes in projective space Homography.
Project 2 due today Project 3 out today Announcements TexPoint fonts used in EMF. Read the TexPoint manual before you delete this box.: AAAAA.
John Morris Stereo Vision (continued) Iolanthe returns to the Waitemata Harbour.
EECS 274 Computer Vision Projective Structure from Motion.
Energy minimization Another global approach to improve quality of correspondences Assumption: disparities vary (mostly) smoothly Minimize energy function:
Correspondence and Stereopsis. Introduction Disparity – Informally: difference between two pictures – Allows us to gain a strong sense of depth Stereopsis.
CSE 185 Introduction to Computer Vision Stereo 2.
55:148 Digital Image Processing Chapter 11 3D Vision, Geometry
CS4670 / 5670: Computer Vision Kavita Bala Lec 27: Stereo.
Epipolar geometry.
Geometry 3: Stereo Reconstruction
Computer Vision Stereo Vision.
Chapter 11: Stereopsis Stereopsis: Fusing the pictures taken by two cameras and exploiting the difference (or disparity) between them to obtain the depth.
Presentation transcript:

Geometry 3: Stereo Reconstruction Introduction to Computer Vision Ronen Basri Weizmann Institute of Science

Material covered Pinhole camera model, perspective projection Two view geometry, general case: Epipolar geometry, the essential matrix Camera calibration, the fundamental matrix Two view geometry, degenerate cases Homography (planes, camera rotation) A taste of projective geometry Stereo vision: 3D reconstruction from two views Multi-view geometry, reconstruction through factorization

Summary of last lecture HomographyPerspective (calibrated) Perspective (uncalibrated) Orthographic Form PropertiesOne-to-one (group) Concentric epipolar lines Parallel epipolar lines DOFs 8(5) 8(7)4 Eqs/pnt 2111 Minimal configuration 45+ (8,linear)7+ (8,linear)4 DepthNoYes, up to scale Yes, projective structure Affine structure (third view required for Euclidean structure)

Camera rotation

Planar scene

Epipolar lines epipolar lines Baseline O O’ epipolar plane

Rectification Rectification: rotation and scaling of each camera’s coordinate frame to make the epipolar lines horizontal and equi-height, by bringing the two image planes to be parallel to the baseline Rectification is achieved by applying homography to each of the two images

Rectification Baseline O O’

Cyclopean coordinates

Disparity

The correspondence problem Stereo matching is ill-posed: Matching ambiguity: different regions may look similar

The correspondence problem Stereo matching is ill-posed: Matching ambiguity: different regions may look similar Specular reflectance: multiple depth values

Random dot stereogram Depth is perceived from a pair of random dot images Stereo perception is based solely on local information (low level)

Moving random dots

Compared elements for correspondence

Dynamic programming Each pair of epipolar lines is compared independently Local cost, sum of unary term and binary term Unary term: cost of a single match Binary term: cost of change of disparity (occlusion) Analogous to string matching (‘diff’ in Unix)

String matching Swing → String S t r i n g S w i n g Start End

String matching Cost: #substitutions + #insertions + #deletions S t r i n g S w i n g

Stereo with dynamic programming Shortest path in a grid Diagonals: constant disparity Moving along the diagonal – pay unary cost (cost of pixel match) Move sideways – pay binary cost, i.e. disparity change (occlusion, right or left) Cost prefers fronto-parallel planes. Penalty is paid for tilted planes

Dynamic programming on a grid Start

Probability interpretation: the Viterbi algorithm

Dynamic programming: pros and cons Advantages: Simple, efficient Achieves global optimum Generally works well Disadvantages:

Dynamic programming: pros and cons Advantages: Simple, efficient Achieves global optimum Generally works well Disadvantages: Works separately on each epipolar line, does not enforce smoothness across epipolars Prefers fronto-parallel planes Too local? (considers only immediate neighbors)

Markov random field

Iterated conditional modes (ICM)

Graph cuts: expansion moves

α-Expansion In any one round, expansion move allows each pixel to either change its state to α, or maintain its previous state Each round is implemented via max flow/min cut One iteration: apply expansion moves sequentially with all possible disparity values Repeat till convergence

α-Expansion

α-Expansion (1D example)

Common metrics

Reconstruction with graph-cuts Original Result Ground truth

A different application: detect skyline Input: one image, oriented with sky above Objective: find the skyline in the image Graph: grid Two states: sky, ground Unary (data) term: State = sky, low if blue, otherwise high State = ground, high if blue, otherwise low Binary term for vertical connections: If state(node)=sky then state(node above)=sky (infinity if not) If state(node)=ground then state(node below)= ground Solve with expansion move. This is a two state problem, and so graph cut finds the global optimum in one expansion move