3D reconstruction class 11

Similar documents
Epipolar Geometry class 11

More on single-view geometry class 10

Computer Vision I - Algorithms and Applications: Multi-View 3D reconstruction

Multiple View Geometry in Computer Vision Second Edition

Computing F class 13. Multiple View Geometry. Comp Marc Pollefeys

Auto-calibration. Computer Vision II CSE 252B

Multiple Views Geometry

Structure from motion

Multiple View Geometry in Computer Vision

calibrated coordinates Linear transformation pixel coordinates

Multiple View Geometry in computer vision

3D Photography: Epipolar geometry

Week 2: Two-View Geometry. Padua Summer 08 Frank Dellaert

Unit 3 Multiple View Geometry

Two-view geometry Computer Vision Spring 2018, Lecture 10

Structure from motion

1 Projective Geometry

Invariance of l and the Conic Dual to Circular Points C

Structure from Motion. Introduction to Computer Vision CSE 152 Lecture 10

CS231M Mobile Computer Vision Structure from motion

Geometry of Multiple views

Epipolar Geometry Prof. D. Stricker. With slides from A. Zisserman, S. Lazebnik, Seitz

Structure from Motion. Prof. Marco Marcon

BIL Computer Vision Apr 16, 2014

The end of affine cameras

Lecture 6 Stereo Systems Multi-view geometry

Computer Vision Projective Geometry and Calibration. Pinhole cameras

Reminder: Lecture 20: The Eight-Point Algorithm. Essential/Fundamental Matrix. E/F Matrix Summary. Computing F. Computing F from Point Matches

CS-9645 Introduction to Computer Vision Techniques Winter 2019

Structure from Motion

Multiple View Geometry. Frank Dellaert

Stereo and Epipolar geometry

CS231A Course Notes 4: Stereo Systems and Structure from Motion

Camera Calibration. Schedule. Jesus J Caban. Note: You have until next Monday to let me know. ! Today:! Camera calibration

A Summary of Projective Geometry

CS 664 Slides #9 Multi-Camera Geometry. Prof. Dan Huttenlocher Fall 2003

Projective geometry for Computer Vision

METRIC PLANE RECTIFICATION USING SYMMETRIC VANISHING POINTS

Lecture 9: Epipolar Geometry

Epipolar geometry. x x

Lecture 5 Epipolar Geometry

Rectification and Distortion Correction

Elements of Computer Vision: Multiple View Geometry. 1 Introduction. 2 Elements of Geometry. Andrea Fusiello

A Stratified Approach for Camera Calibration Using Spheres

Structure from Motion and Multi- view Geometry. Last lecture

Index. 3D reconstruction, point algorithm, point algorithm, point algorithm, point algorithm, 263

But First: Multi-View Projective Geometry

Stereo Vision. MAN-522 Computer Vision

Automatic Estimation of Epipolar Geometry

3D Computer Vision. Structure from Motion. Prof. Didier Stricker

CEE598 - Visual Sensing for Civil Infrastructure Eng. & Mgmt.

Index. 3D reconstruction, point algorithm, point algorithm, point algorithm, point algorithm, 253

C / 35. C18 Computer Vision. David Murray. dwm/courses/4cv.

Projective geometry for 3D Computer Vision

Computer Vision I. Announcement. Stereo Vision Outline. Stereo II. CSE252A Lecture 15

55:148 Digital Image Processing Chapter 11 3D Vision, Geometry

MAPI Computer Vision. Multiple View Geometry

Camera models and calibration

Two-View Geometry (Course 23, Lecture D)

Lecture 6 Stereo Systems Multi- view geometry Professor Silvio Savarese Computational Vision and Geometry Lab Silvio Savarese Lecture 6-24-Jan-15

Computer Vision cmput 428/615

Multiple View Geometry

3D Reconstruction from Two Views

Structure from Motion CSC 767

Structure from Motion

Multiple View Geometry in Computer Vision

Camera model and multiple view geometry

Recovering structure from a single view Pinhole perspective projection

Globally Optimal Algorithms for Stratified Autocalibration

Lecture 10: Multi-view geometry

Epipolar Geometry and Stereo Vision

Today. Stereo (two view) reconstruction. Multiview geometry. Today. Multiview geometry. Computational Photography

Camera Geometry II. COS 429 Princeton University

Computer Vision Lecture 17

Computer Vision Lecture 17

C280, Computer Vision

3D Reconstruction from Scene Knowledge

Camera Calibration Using Line Correspondences

Epipolar Geometry and Stereo Vision

Structure from Motion

Lecture 10: Multi view geometry

Computer Vision: Lecture 3

Homogeneous Coordinates. Lecture18: Camera Models. Representation of Line and Point in 2D. Cross Product. Overall scaling is NOT important.

CS201 Computer Vision Camera Geometry

Lecture 14: Basic Multi-View Geometry

Epipolar Geometry and the Essential Matrix

CS231A Midterm Review. Friday 5/6/2016

Augmented Reality II - Camera Calibration - Gudrun Klinker May 11, 2004

Computer Vision I - Appearance-based Matching and Projective Geometry

Camera Calibration from the Quasi-affine Invariance of Two Parallel Circles

N-Views (1) Homographies and Projection

A Factorization Method for Structure from Planar Motion

CSE 252B: Computer Vision II

COMPARATIVE STUDY OF DIFFERENT APPROACHES FOR EFFICIENT RECTIFICATION UNDER GENERAL MOTION

Computer Vision I. Announcements. Random Dot Stereograms. Stereo III. CSE252A Lecture 16

Contents. 1 Introduction Background Organization Features... 7

Projective geometry, camera models and calibration

55:148 Digital Image Processing Chapter 11 3D Vision, Geometry

Vision par ordinateur

Plane-based Calibration Algorithm for Multi-camera Systems via Factorization of Homography Matrices

Transcription:

3D reconstruction class 11 Multiple View Geometry Comp 290-089 Marc Pollefeys

Multiple View Geometry course schedule (subject to change) Jan. 7, 9 Intro & motivation Projective 2D Geometry Jan. 14, 16 (no class) Projective 2D Geometry Jan. 21, 23 Projective 3D Geometry (no class) Jan. 28, 30 Parameter Estimation Parameter Estimation Feb. 4, 6 Algorithm Evaluation Camera Models Feb. 11, 13 Camera Calibration Single View Geometry Feb. 18, 20 Epipolar Geometry 3D reconstruction Feb. 25, 27 Fund. Matrix Comp. Structure Comp. Mar. 4, 6 Planes & Homographies Trifocal Tensor Mar. 18, 20 Three View Reconstruction Multiple View Geometry Mar. 25, 27 MultipleView Reconstruction Bundle adjustment Apr. 1, 3 Auto-Calibration Papers Apr. 8, 10 Dynamic SfM Papers Apr. 15, 17 Cheirality Papers Apr. 22, 24 Duality Project Demos

Two-view geometry Epipolar geometry 3D reconstruction F-matrix comp. Structure comp.

Three questions: (i) Correspondence geometry: Given an image point x in the first image, how does this constrain the position of the corresponding point x in the second image? (ii) Camera geometry (motion): Given a set of corresponding image points {x i x i }, i=1,,n, what are the cameras P and P for the two views? (iii) Scene geometry (structure): Given corresponding image points x i x i and cameras P, P, what is the position of (their pre-image) X in space?

Epipolar geometry P Underlying structure in set of matches for rigid scenes C1 m1 l1 M L2 L1 l T 1 l 2 e1 T m F m1 2 = 0 e2 m2 l2 Fundamental matrix (3x3 rank 2 matrix) C2 Canonical representation: 1. Computable from corresponding points P = [I 0] P' = [[e'] F + e' v T λe'] 2. Simplifies matching 3. Allows to detect wrong matches 4. Related to calibration

3D reconstruction of cameras and structure reconstruction problem: given x i x i, compute P,P and X i x i = PX i i Xi for all i x = P' without additional informastion possible up to projective ambiguity

outline of reconstruction (i) Compute F from correspondences (ii) Compute camera matrices from F (iii) Compute 3D point for each pair of corresponding points computation of F use x i Fx i =0 equations, linear in coeff. F 8 points (linear), 7 points (non-linear), 8+ (least-squares) (more on this next class) computation of camera matrices T use P = [I 0] P' = [[e'] F + e' v λe'] triangulation compute intersection of two backprojected rays

Reconstruction ambiguity: similarity X i H S X i Replace with Cameras P and P by PH -1 s and P H -1 s Does not change the image Point or the calibration Matrix of P and P x i = PX i = ( -1 PH )( H X ) S S i For calibrated cameras, reconstruction is possible up to similarity & This is the only ambiguity of reconstruction (Longuet & Higgins 81)

Reconstruction ambiguity: projective x i = PX i = ( -1 PH )( H X ) P P i For uncaliberated cameras, ambiguity of reconstruction is expressed by an Arbitrary projective transformation.

Terminology x i x i Original scene X i Projective, affine, similarity reconstruction = reconstruction that is identical to original up to projective, affine, similarity transformation Literature: Metric and Euclidean reconstruction = similarity reconstruction

The projective reconstruction theorem If a set of point correspondences in two views determine the fundamental matrix uniquely, then the scene and cameras may be reconstructed from these correspondences alone, and any two such reconstructions from these correspondences are projectively equivalent x i x i P = P -1 2 1H ( P,P ',{ }) ( P,P ',{ }) 1 1 X1i -1 2 = P1 H 2 HX1 P 2 2 X2i X = ( except :Fx x F = 0) key result: allows reconstruction from pair of uncalibrated images i = i Points lying On line joining Two camera centers Projective reconstruction answers questions like: At what point does a line intersect a plane? What is the mapping between two views induced by planes?

True Euclidean Reconstruction

Stratified reconstruction (i) Projective reconstruction (ii) Affine reconstruction (iii) Metric reconstruction

Projective to affine remember 2-D case

Projective to affine Affine reconstruction can be sufficient depending on application, e.g. mid-point, centroid can be computed Parallellism: lines constructed parallel to other lines and to planes Question: how to identify plane at infinity need extra information The essence of affine reconstruction is to locate the plane at infinity; suppose We have somehow identified the plane at infinity. ( P,P', { X i }) π = ( A, B, C, D) T a ( 0,0,0, 1) T T H - π = ( 0,0,0,1 ) T I 0 H = π Projective reconstruction of the scene (if D 0) Now apply H to all points and to two cameras. Plane at infinity has been correctly place. This reconstruction differs from true Reconstruction up to projective transformation that fixes the plane at infinity. But projective with fixed π is affine transformation

Translational motion to find plane at infinity points at infinity are fixed for a pure translation reconstruction of x i x i is on π Get three points on plane at infinity to reconstruct it. F = [e] [e'] P =[I 0] = P =[I e']

Scene constraints to find plane at infinity Parallel lines parallel lines intersect at infinity reconstruction of corresponding vanishing point yields point on plane at infinity 3 sets of parallel lines allow to uniquely determine π remark: in presence of noise determining the intersection of parallel lines is a delicate problem remark: obtaining vanishing point in one image can be sufficient

Scene constraints

Scene constraints Distance ratios on a line to find plane at infinity known distance ratio along a line allow to determine point at infinity (same as 2D case) Given two intervales on a line with a known length ratio, the point at infinity on the line can be found from an image of a line on which a world distance ratiois known, for example that three points are equally spaced, the vanishing point may be determined.

The infinity homography A mapping that transfers points from the P image to the P image via The plane at infinity P = [M m] P'=[M' m' ] X = ( X ~,0) T -1 H = M'M x = MX ~ unchanged under affine transformations P = [M m] A [MA Ma m] 0 1 a = + H = M'AA -1 M -1 x' = M' X ~ Infinite homography can be computed from an affine reconstruction and Vice versa. Infinite homography can be computed directly from corresponding image entries e.g. Three vanishing points and F, or vanishing line, vanishing point and F

One of the cameras is affine to find plane at infinity Principal plane is the plane parallel to the image plane, passing through camera center. It is third row of P for a camera. Affine camera model is an approximation which is only valid when the set of points seen in the image has small depth variation compared with the distance from the camera. The principal plane of an affine camera is at infinity to obtain affine recontruction, compute H that maps third row of P to (0,0,0,1) T and apply to cameras and reconstruction 1 0 e.g. if P=[I 0], swap 3 rd and 4 th row, i.e. H = 0 1 0 0 0 0 0 0 0 1 0 0 1 0

Affine to metric identify absolute conic; it lies on the plane at infinity Transform so that the absolute conic is mapped to the absolute conice in Euclidean frame Ω 2 2 2 : X + Y + Z = 0, on π then projective transformation relating original and reconstruction is a similarity transformation in practice, find image of Ω image ω backprojects to cone that intersects π in Ω note that image is independent of particular reconstruction ω* projection constraints Ω*

Affine to metric given P = [M m] ω Image of the absolute conic possible transformation from affine to metric is H = A 0-1 0 1 AA T = ( T ) M ωm 1 (cholesky factorisation) How to find the image of an absolute conic? constraints

Constraints arising from scene Ortogonality to find image of absolute conic vanishing points corresponding to orthogonal directions T v ωv2 1 = l = ωv 0 vanishing line and vanishing point corresponding to plane and normal direction

Constraints arising from known internal parameters to find image of absolute conic ω = K -T K -1 rectangular pixels s = 0 ω = ω21 12 = 0 square pixels α x = α y ω 11 = ω 22

Constraints arising from Same camera for all images to find image of absolute conic same intrinsics same image of the absolute conic e.g. moving cameras Property of absolute conic: its projection onto an image depends only on the calibration matrix of the camera, not on the position or orientation of camera If P and P have the same calibration matrix, i.e. Both images taken with the same camera at different poses, then w = w Given sufficient images there is in general only one conic that projects to the same image in all images, i.e. the absolute conic; This approach is called self-calibration, see later Since the absolute conic is on th eplane at infinity, its image may be transfered from one view to the other via infinite homogrpahy: transfer of IAC: ω' = H -T -1 ωh Combine w=w with the above four contraints on w; W has five dof; use some of the other contraints e.g. orthogonality or Known internal parameters.

Direct metric reconstruction using ω approach 1 ω = K -T K -1 K calibrated reconstruction; find K and K for two poses;then apply essential matrix approach 2 compute projective reconstruction back-project ω from both images Intersection of the two cones defines Ω and its support plane π (in general two cones intersect in two different plane conics, each lying in a different support plane two solutions)

Direct reconstruction using ground truth use control points X Ei with know coordinates to go from projective to metric Since projective reconstruction Is related to to true reconstruction by a Homography: i HX i Each point correspondence provides 3 lin. Ind. Eqns on elements of H; since H has 15 elements 5 or more points X E = x = PH -1 i X Ei (2 lin. eq. in H -1 per view, 3 for two views;)

Objective Given two uncalibrated images compute (P M,P M,{X Mi }) (i.e. within similarity of original scene and cameras) Algorithm (i) Compute projective reconstruction (P,P,{X i }) (a) Compute F from x i x i (b) Compute P,P from F (c) Triangulate X i from x i x i (ii) Rectify reconstruction from projective to metric Direct method: compute H from control points P = M PH -1-1 M = P H X M i = HXi P Stratified method: (a) Affine reconstruction: compute π I 0 H = π (b) Metric reconstruction: compute IAC ω H = A 0-1 0 1 AA T = X E = ( T ) M ωm 1 i HX i

Image information provided View relations and projective objects 3-space objects reconstruction ambiguity point correspondences F projective point correspondences including vanishing points F,H π affine Points correspondences and internal camera calibration F,H ω,ω π Ω metric

Next class: Computing F