calibrated coordinates Linear transformation pixel coordinates

Similar documents
Stereo and Epipolar geometry

Two-View Geometry (Course 23, Lecture D)

3D Reconstruction from Scene Knowledge

Unit 3 Multiple View Geometry

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

1 Projective Geometry

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

Stereo Vision. MAN-522 Computer Vision

Structure from motion

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

Two-view geometry Computer Vision Spring 2018, Lecture 10

Geometric camera models and calibration

Structure from motion

CS201 Computer Vision Camera Geometry

3D Geometry and Camera Calibration

Lecture 9: Epipolar Geometry

Multiple Views Geometry

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

Computer Vision Projective Geometry and Calibration. Pinhole cameras

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

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

Projective 2D Geometry

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

Vision Review: Image Formation. Course web page:

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

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

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

Pin Hole Cameras & Warp Functions

Lecture 3: Camera Calibration, DLT, SVD

Rectification and Distortion Correction

Module 4F12: Computer Vision and Robotics Solutions to Examples Paper 2

Agenda. Rotations. Camera models. Camera calibration. Homographies

COMPARATIVE STUDY OF DIFFERENT APPROACHES FOR EFFICIENT RECTIFICATION UNDER GENERAL MOTION

Camera model and multiple view geometry

Pin Hole Cameras & Warp Functions

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

Epipolar geometry. x x

BIL Computer Vision Apr 16, 2014

Recovering structure from a single view Pinhole perspective projection

Structure from Motion. Prof. Marco Marcon

A Factorization Method for Structure from Planar Motion

CSE 252B: Computer Vision II

CS231M Mobile Computer Vision Structure from motion

Compositing a bird's eye view mosaic

CSE 252B: Computer Vision II

CS231A Course Notes 4: Stereo Systems and Structure from Motion

Fundamental Matrix & Structure from Motion

METR Robotics Tutorial 2 Week 2: Homogeneous Coordinates

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

Visual Recognition: Image Formation

CS223b Midterm Exam, Computer Vision. Monday February 25th, Winter 2008, Prof. Jana Kosecka

Metric Rectification for Perspective Images of Planes

Rigid Body Motion and Image Formation. Jana Kosecka, CS 482

Agenda. Rotations. Camera calibration. Homography. Ransac

Epipolar Geometry and Stereo Vision

Machine vision. Summary # 11: Stereo vision and epipolar geometry. u l = λx. v l = λy

Midterm Exam Solutions

Dense 3D Reconstruction. Christiano Gava

CS6670: Computer Vision

Structure from Motion CSC 767

CS 231A: Computer Vision (Winter 2018) Problem Set 2

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

Camera Geometry II. COS 429 Princeton University

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

CS231A Midterm Review. Friday 5/6/2016

Epipolar Geometry and Stereo Vision

Planar homographies. Can we reconstruct another view from one image? vgg/projects/singleview/

Computer Vision Lecture 17

Computer Vision Lecture 17

Camera calibration. Robotic vision. Ville Kyrki

Rectification and Disparity

Structure from Motion

Part I: Single and Two View Geometry Internal camera parameters

Camera Models and Image Formation. Srikumar Ramalingam School of Computing University of Utah

3D reconstruction class 11

N-Views (1) Homographies and Projection

Single-view 3D Reconstruction

Announcements. Stereo

Elements of Geometric Computer Vision. Andrea Fusiello

Structure from Motion

Computer Vision cmput 428/615

3-D D Euclidean Space - Vectors

Lecture 14: Basic Multi-View Geometry

Stereo CSE 576. Ali Farhadi. Several slides from Larry Zitnick and Steve Seitz

Structure from Motion and Multi- view Geometry. Last lecture

3D Reconstruction from Two Views

ECE 470: Homework 5. Due Tuesday, October 27 in Seth Hutchinson. Luke A. Wendt

Dense 3D Reconstruction. Christiano Gava

Computer Vision. Coordinates. Prof. Flávio Cardeal DECOM / CEFET- MG.

C280, Computer Vision

There are many cues in monocular vision which suggests that vision in stereo starts very early from two similar 2D images. Lets see a few...

A Stratified Approach for Camera Calibration Using Spheres

Camera Model and Calibration

3D Modeling using multiple images Exam January 2008

Computer Vision Projective Geometry and Calibration. Pinhole cameras

An idea which can be used once is a trick. If it can be used more than once it becomes a method

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

A linear algorithm for Camera Self-Calibration, Motion and Structure Recovery for Multi-Planar Scenes from Two Perspective Images

Multiple View Geometry in Computer Vision Second Edition

Camera Models and Image Formation. Srikumar Ramalingam School of Computing University of Utah

Transcription:

1 calibrated coordinates Linear transformation pixel coordinates 2

Calibration with a rig Uncalibrated epipolar geometry Ambiguities in image formation Stratified reconstruction Autocalibration with partial scene knowledge 3 Use the fact that both 3-D and 2-D coordinates of feature points on a pre-fabricated object (e.g., a cube) are known. 4

Given 3-D coordinates on known object Eliminate unknown scales Recover projection matrix Factor the KR into and K using QR decomposition Solve for translation 5 Direct calibration by recovering and decomposing the projection matrix 2 constraints per point 6

Recover projection matrix Collect the constraints from all N points into matrix M (2N x 12) Solution eigenvector associated with the smallest eigenvalue [u,s,v] = svd(m) take v(:,12) Unstack the solution and decompose into rotation and translation Factor the R into and K using QR decomposition (qr matlab function) Solve for translation 7 To eliminate unknown depth, multiply both sides by 8

Calibrated camera Image plane coordinates Camera extrinsic parameters Perspective projection Uncalibrated camera Pixel coordinates Projection matrix 9 K is known, back to calibrated case K is unknown Calibration with complete scene knowledge (a rig) estimate Uncalibrated reconstruction despite the lack of knowledge of Autocalibration (recover from uncalibrated images) Use partial knowledge Parallel lines, vanishing points, planar motion, constant intrinsic Ambiguities, stratification (multiple views) 10

Epipolar constraint Fundamental matrix Equivalent forms of 11 Epipolar lines Epipoles Image correspondences 12

A nonzero matrix is a fundamental matrix if has a singular value decomposition (SVD) with for some. There is little structure in the matrix except that 13 Find such F that the epipolar error is minimized Pixel coordinates Fundamental matrix can be estimated up to scale Denote Rewrite Collect constraints from all points 14

Solve the LLSE problem: Solution eigenvector associated with smallest eigenvalue of Compute SVD of F recovered from data Project onto the essential manifold: cannot be unambiguously decomposed into pose and calibration 15 F can be inferred from point matches (eight-point algorithm) Cannot extract motion, structure and calibration from one fundamental matrix (two views) F allows reconstruction up to a projective transformation (as we will see soon) F encodes all the geometric information among two views when no additional information is available F is often used in robust matching for establishing correspondences (one cannot recover R,T from single F) 16

From points, extract, followed by computation of projection matrices Canonical decomposition and structure Given projection matrices recover structure Projective ambiguity non-singular 4x4 matrix Both and are consistent with the epipolar geometry give the same fundamental matrix 17 Given projection matrices recover projective structure This is a linear problem and can be solve using linear least-squares Projective reconstruction projective camera matrices and projective structure Euclidean Structure Projective Structure 18

Euclidean reconstruction true metric properties of objects lenghts (distances), angles, parallelism are preserved Unchanged under rigid body transformations => Euclidean Geometry properties of rigid bodies under rigid body transformations, similarity transformation Projective reconstruction lengths, angles, parallelism are NOT preserved we get distorted images of objects their distorted 3D counterparts --> 3D projective reconstruction => Projective Geometry 19 Describes shapes as they are Properties of objects that are unchanged by Rigid Body Transformation - lengths - angles - parallelism 20

Describes things as they are Lengths, angles become distorted When we look at the objects Mathematical model how the images of the world are formed Examples corner of the room - railroad tracks Example parallax displacement of objects due to the change of viewpoints 21 3-D coordinates are related by: Homogeneous coordinates: Homogeneous coordinates are related by: 22

Homogenous coordinates in 3D before attach 1 as the last coordinate render the transformation as linear transformation Before 4 th coordinate cannot be zero 0 Projective coordinates all points are equivalent up to a scale 2D- projective plane 3D- projective space Each point on the plane is represented by a ray in projective space 23 Ideal points last coordinate is 0 ray parallel to the image plane point at infinity never intersects the image plane 24

Representation of a 3-D line in homogeneous coordinates When λ -> infinity - vanishing points last coordinate -> 0 Projection of a line - line in the image plane 25 Vanishing points intersections of the parallel lines Vanishing points of three orthogonal directions Orthogonal directions inner product is zero Provide directly constraints on matrix S has 5 degrees of freedom, 3 vanishing points 3 constraints (need additional assumption about K) Assume zero skew and aspect ratio = 1 26

Vermeer s Music Lesson 27 Calibrated Two views related by rotation only Mapping to a reference view rotation can be estimated Mapping to a cylindrical surface 28

Calibrated Two views related by rotation only Given three rotations around linearly independent axes S, K can be estimated using linear techniques Applications image mosaics 29 Projective transformation 8-DOF (collinearity, cross ratios) Affine transformation 6-DOF (parallelism, ration of areas, length ratios) Similarity transformation 4-DOF (angles, length ratios) Rigid Body Motion 3-DOF (angles, lengths, areas) 30

31 There is one-to-one mapping between two images of a plane or between image plane and world plane 2D projective transformation H homography (3x3 matrix) Estimation of homography from point correspondences 1. eliminate unknown depth 2. get two independent constraints per point (9-1) unknowns 3. need at least 4 points to estimate H 4. H is can be estimated up to a scale factor 32

p p Image based rectification (given some points in 3D world) compute H which would map them into a square Use H to rectify the entire image In calibrated case inter-image homography 33 34

LLS solution to solving a system of homogeneous equations Solution eigenvector associated with the smallest eigenvalue of A T A 35 1st view 2nd view 2nd view warped by the planar homography between two views 36

37 Examples Given a set of line segments, group them based on which vanishing direction then belong to and estimate vanishing points 38

Assume partially calibrated camera Explicitely parametrize the homography Explicitely parametrize the unknown structure 39 Decouple known and unknown structure Estimate the unknown homography 40

Exploiting orthogonality constraints Directly estimate the focal length remaining parameters and final pose 41 With shared segment the pose can be reconciled and we obtain single consistent pose recovery up to scale and error ~ 3 degrees 42

Recovery of the camera displacement from a planar structure 43 Recovery of the camera displacement from a planar structure Dominant plane is decomposed to 44

EM (Expectation Maximization) Brief tutorial by example: EM well known statistical technique for estimation of models from data Set up: Given set of datapoints which were generated by multiple models estimate the parameters of the models and assignment of the data points to the models Here: set of points in the plane with coordinates (x,y), two lines with parameters (a1,b1) and (a2,b2) 1. Guess the line parameters and estimate error of each point wrt to current model 2. Estimate Expectation (weight for each point) 45 EM Maximization step: Traditional least squares: Here weighted least squares: Iterate until no change Problems: local minima, how many models? 46

EM - example 47 Calibrated camera Image plane coordinates Camera extrinsic parameters Perspective projection Uncalibrated camera Pixel coordinates Projection matrix 48