Structure Computation. How to compute the position of a point in 3- space given its image in two views and the camera matrices of those two views Use.

Slides:



Advertisements
Similar presentations
Epipolar Geometry.
Advertisements

Lecture 11: Two-view geometry
3D reconstruction.
The Trifocal Tensor Multiple View Geometry. Scene planes and homographies plane induces homography between two views.
Robot Vision SS 2005 Matthias Rüther 1 ROBOT VISION Lesson 3: Projective Geometry Matthias Rüther Slides courtesy of Marc Pollefeys Department of Computer.
Computer vision: models, learning and inference
Two-View Geometry CS Sastry and Yang
Jan-Michael Frahm, Enrique Dunn Spring 2012
Two-view geometry.
Camera calibration and epipolar geometry
Structure from motion.
Multiple View Geometry
Epipolar Geometry Class 7 Read notes Feature tracking run iterative L-K warp & upsample Tracking Good features Multi-scale Transl. Affine.
Parameter estimation class 5 Multiple View Geometry Comp Marc Pollefeys.
Epipolar geometry. (i)Correspondence geometry: Given an image point x in the first view, how does this constrain the position of the corresponding point.
Structure from motion. Multiple-view geometry questions Scene geometry (structure): Given 2D point matches in two or more images, where are the corresponding.
Uncalibrated Geometry & Stratification Sastry and Yang
Epipolar Geometry and the Fundamental Matrix F
Multiple View Geometry Marc Pollefeys University of North Carolina at Chapel Hill Modified by Philippos Mordohai.
Multiple-view Reconstruction from Points and Lines
3D reconstruction of cameras and structure x i = PX i x’ i = P’X i.
Multiple View Geometry Marc Pollefeys University of North Carolina at Chapel Hill Modified by Philippos Mordohai.
Multiple View Geometry Marc Pollefeys University of North Carolina at Chapel Hill Modified by Philippos Mordohai.
Previously Two view geometry: epipolar geometry Stereo vision: 3D reconstruction epipolar lines Baseline O O’ epipolar plane.
Single-view geometry Odilon Redon, Cyclops, 1914.
Projected image of a cube. Classical Calibration.
Lec 21: Fundamental Matrix
Scene planes and homographies. Homographies given the plane and vice versa.
CS 558 C OMPUTER V ISION Lecture IX: Dimensionality Reduction.
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.
CSE 6367 Computer Vision Stereo Reconstruction Camera Coordinate Transformations “Everything should be made as simple as possible, but not simpler.” Albert.
Multi-view geometry. Multi-view geometry problems Structure: Given projections of the same 3D point in two or more images, compute the 3D coordinates.
776 Computer Vision Jan-Michael Frahm, Enrique Dunn Spring 2013.
Automatic Camera Calibration
Lecture 11 Stereo Reconstruction I Lecture 11 Stereo Reconstruction I Mata kuliah: T Computer Vision Tahun: 2010.
Computing the Fundamental matrix Peter Praženica FMFI UK May 5, 2008.
Multi-view geometry.
Lecture 12 Stereo Reconstruction II Lecture 12 Stereo Reconstruction II Mata kuliah: T Computer Vision Tahun: 2010.
Epipolar geometry The fundamental matrix and the tensor
1 Preview At least two views are required to access the depth of a scene point and in turn to reconstruct scene structure Multiple views can be obtained.
Projective cameras Motivation Elements of Projective Geometry Projective structure from motion Planches : –
Course 12 Calibration. 1.Introduction In theoretic discussions, we have assumed: Camera is located at the origin of coordinate system of scene.
Lecture 04 22/11/2011 Shai Avidan הבהרה : החומר המחייב הוא החומר הנלמד בכיתה ולא זה המופיע / לא מופיע במצגת.
Structure from Motion Course web page: vision.cis.udel.edu/~cv April 25, 2003  Lecture 26.
Multiview Geometry and Stereopsis. Inputs: two images of a scene (taken from 2 viewpoints). Output: Depth map. Inputs: multiple images of a scene. Output:
1 Formation et Analyse d’Images Session 7 Daniela Hall 25 November 2004.
Parameter estimation. 2D homography Given a set of (x i,x i ’), compute H (x i ’=Hx i ) 3D to 2D camera projection Given a set of (X i,x i ), compute.
Geometry of Multiple Views
Single-view geometry Odilon Redon, Cyclops, 1914.
Two-view geometry. Epipolar Plane – plane containing baseline (1D family) Epipoles = intersections of baseline with image planes = projections of the.
Multi-linear Systems and Invariant Theory
55:148 Digital Image Processing Chapter 11 3D Vision, Geometry Topics: Basics of projective geometry Points and hyperplanes in projective space Homography.
Reconstruction from Two Calibrated Views Two-View Geometry
Single-view geometry Odilon Redon, Cyclops, 1914.
Stereo March 8, 2007 Suggested Reading: Horn Chapter 13.
Parameter estimation class 5 Multiple View Geometry CPSC 689 Slides modified from Marc Pollefeys’ Comp
Lec 26: Fundamental Matrix CS4670 / 5670: Computer Vision Kavita Bala.
Multi-view geometry. Multi-view geometry problems Structure: Given projections of the same 3D point in two or more images, compute the 3D coordinates.
55:148 Digital Image Processing Chapter 11 3D Vision, Geometry
The Brightness Constraint
Parameter estimation class 5
Two-view geometry Computer Vision Spring 2018, Lecture 10
Epipolar geometry.
3D Photography: Epipolar geometry
Estimating 2-view relationships
Two-view geometry.
Two-view geometry.
Multi-view geometry.
Single-view geometry Odilon Redon, Cyclops, 1914.
Presentation transcript:

Structure Computation

How to compute the position of a point in 3- space given its image in two views and the camera matrices of those two views Use image correspondence to compute F; then find a pair of consistent camera matrices. Assume these matrices are known exactly or with great accuracy as compared to the matching points in the two images.

Point reconstruction Error in measured points, x and x’: Rays back-projected from the points are skew There is no point X which exactly satisfies: x = P X x’ = P’X The image points do not satisfy the epipolar constraint x’ T F x = 0 (a) (b)

Invariance Under Transformation Desirable triangulation: invariant under transformations for reconstruction: If camera matrices known only up to affine (projective) transformation, use a affine (projective) invariant triangulation method to find 3D space points What is an invariant triangulation method? Τ= triangulation method

Projective Reconstruction Inappropriate to minimize error in the 3D projective space P 3 Bad idea: find midpoint of the common perpendicular to the two rays in space: Distance and perpendicularity not valid in projective geometry Gives different results depending on which projective reconstruction is considered Not projective invariant Need to design a projective invariant approach Better idea: minimize the re-projection error Find 3D point X so that the sum squared distance between the projection of X and measured image points x, and x’ is minimized

Linear Triangulation Eliminate the homogeneous scale factor by a cross product to give three equations for each image point of which two are linearly independent p iT rows of P Soln up to scale  redundant Eqn Two approaches: homogeneous and inhomogeneous Homogeneous: unit singular vector corresp. To smallest sing. value of A Not projective invariant Inhomogeneous: Set X = ( X,Y,Z,1)  get four inhomogeneous equations in three unknowns  Least squares solution Not projective invariant Implicitly assumes the solution X is not at infinity by assuming 4 th coordinate to be 1  problematic if 4 th coordinate is close to zero  numerical instabilities For affine transformation, homogeneous solution is not affine invariant, inhomogeneous solution is affine invariant  

Geometric Error Noisy point correspondence (x,x’) dies not satisfy epipolar constraint, but points near x and x’ do, i.e. (x ^, x ^’ ). Minimize over x ^ and x ^’: If error in x and x’ is Gaussian, x ^ and x ^’ are maximum likelihood estimates for x and x’ First find x ^ and x ^’, then find X by any triangulation method: x ^ and x ^’ rays meet in space Use Levenberg Marquardt numerical minimization to find x ^ and x ^’ Minimum can also be found non-iteratively by a solution of a 6 th degree polynomial

Non-Iterative, Optimal Solution Observation: x ^ and x ^’ lying on the “true” epipolar lines, are obtained by dropping a perpendicular line from x to l and x’ to l’; Minimize d 2 + d’ 2

Details of non-iterative solution g (t) is the derivative of the cost function Roots of g(t) are minimum of cost function g (t) is 6 th order polynomial  as many as 3 minima some local, one global; maybe at ∞ Iterative algorithms can get stock in local minima

Evaluation on Real images Results shown for the cube of Figure 11.2  epipole distant from image Improvement of non-iterative method over iterative is more pronounced when epipole is closer to image

Reconstruction Uncertainty

Line reconstruction For correspoinding points, the pre-image,i.e. the point in 3 space that projects to the impage points is over determined, since there are 4 measurements on 3 degrees of freedom of the 3 space point For lines, preimage is exactly determined because a line in 3 space has four degrees of freedom, and the image line provides two measurements in each view

Scene planes and homographies plane induces homography between two views

Homography given the Plane Example: Calibrated stereo rig with the world origin at the first camera

Epipolar Geometry and Homography

Homographies and Epipolar Geometry

Plane Induced Parallax Can compute F once H is known

Plane induced parallax x 1,x 2,x 3,x 4 in plane, x 5,x 6 out of plane Compute H from x 1,x 2,x 3,x 4

Plane induced Homography Images of four co-planar points define homography Two points off the plane provide constraints to determine the epipole

Example of Plane Induced Parallax