Multi-view geometry problems

Similar documents
Structure from motion

Epipolar geometry. x x

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

Recovering structure from a single view Pinhole perspective projection

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

Lecture 9: Epipolar Geometry

Two-view geometry Computer Vision Spring 2018, Lecture 10

Undergrad HTAs / TAs. Help me make the course better! HTA deadline today (! sorry) TA deadline March 21 st, opens March 15th

Epipolar Geometry and Stereo Vision

Epipolar Geometry and Stereo Vision

Structure from motion

Lecture 5 Epipolar Geometry

Cameras and Stereo CSE 455. Linda Shapiro

Announcements. Stereo

Structure from motion

MAPI Computer Vision. Multiple View Geometry

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

CS231M Mobile Computer Vision Structure from motion

Announcements. Stereo

Camera Geometry II. COS 429 Princeton University

Unit 3 Multiple View Geometry

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

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

1 Projective Geometry

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

Epipolar Geometry and Stereo Vision

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

Lecture 14: Basic Multi-View Geometry

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

Robust Geometry Estimation from two Images

BIL Computer Vision Apr 16, 2014

Multiple View Geometry. Frank Dellaert

3D Geometry and Camera Calibration

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

Multi-View Geometry Part II (Ch7 New book. Ch 10/11 old book)

CS231A Course Notes 4: Stereo Systems and Structure from Motion

Epipolar Geometry class 11

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

Lecture 6 Stereo Systems Multi-view geometry

calibrated coordinates Linear transformation pixel coordinates

Lecture 9 & 10: Stereo Vision

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

The end of affine cameras

CS201 Computer Vision Camera Geometry

Multiple View Geometry

Structure from Motion CSC 767

Lecture 10: Multi-view geometry

Structure from Motion and Multi- view Geometry. Last lecture

Stereo Vision. MAN-522 Computer Vision

6.819 / 6.869: Advances in Computer Vision Antonio Torralba and Bill Freeman. Lecture 11 Geometry, Camera Calibration, and Stereo.

Epipolar Geometry and Stereo Vision

Structure from Motion

Stereo. 11/02/2012 CS129, Brown James Hays. Slides by Kristen Grauman

Computer Vision Lecture 17

Computer Vision Lecture 17

Lecture'9'&'10:'' Stereo'Vision'

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

Structure from motion

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

Geometric camera models and calibration

Structure from Motion

The Geometry Behind the Numerical Reconstruction of Two Photos

Introduction à la vision artificielle X

Structure from Motion

Last lecture. Passive Stereo Spacetime Stereo

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

Computer Vision Lecture 20

Computer Vision Lecture 20

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

3D Photography: Epipolar geometry

Fundamental Matrix & Structure from Motion

But First: Multi-View Projective Geometry

Structure from Motion

Geometry of Multiple views

Camera Model and Calibration

3D Sensing and Reconstruction Readings: Ch 12: , Ch 13: ,

Geometry of a single camera. Odilon Redon, Cyclops, 1914

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

Final project bits and pieces

Recap: Features and filters. Recap: Grouping & fitting. Now: Multiple views 10/29/2008. Epipolar geometry & stereo vision. Why multiple views?

3D FACE RECONSTRUCTION BASED ON EPIPOLAR GEOMETRY

C280, Computer Vision

Epipolar Geometry in Stereo, Motion and Object Recognition

Two-View Geometry (Course 23, Lecture D)

CS 231A Computer Vision (Winter 2015) Problem Set 2

Stereo and Epipolar geometry

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

Camera Calibration. COS 429 Princeton University

Descriptive Geometry Meets Computer Vision The Geometry of Two Images (# 82)

Epipolar Geometry CSE P576. Dr. Matthew Brown

Multiple Views Geometry

Camera calibration. Robotic vision. Ville Kyrki

A Real-Time Catadioptric Stereo System Using Planar Mirrors

Camera Calibration Using Line Correspondences

Multiple View Geometry in Computer Vision

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

Rectification and Distortion Correction

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

Introduction to Homogeneous coordinates

3-D D Euclidean Space - Vectors

Transcription:

Multi-view geometry

Multi-view geometry problems Structure: Given projections o the same 3D point in two or more images, compute the 3D coordinates o that point? Camera 1 Camera 2 R 1,t 1 R 2,t 2 Camera 3 R 3,t 3 Slide credit: Noah Snavely

Multi-view geometry problems Stereo correspondence: Given a point in one o the images, where could its corresponding points be in the other images? Camera 1 Camera 2 Camera 3 R 1,t 1 R R 3,t 2,t 2 3 Slide credit: Noah Snavely

Multi-view geometry problems Motion: Given a set o corresponding points in two or more images, compute the camera parameters? R 1,t 1 R 2,t R 2 3,t 3 Camera 1 Camera 2 Camera 3?? Slide credit: Noah Snavely

Two-view geometry

Epipolar geometry X x x Baseline line connecting the two camera centers Epipolar Plane plane containing baseline (1D amily) Epipoles = intersections o baseline with image planes = projections o the other camera center = vanishing points o the motion direction

The Epipole Photo by Frank Dellaert

Epipolar geometry X x x Baseline line connecting the two camera centers Epipolar Plane plane containing baseline (1D amily) Epipoles = intersections o baseline with image planes = projections o the other camera center = vanishing points o the motion direction Epipolar Lines - intersections o epipolar plane with image planes (always come in corresponding pairs)

Example: Converging cameras

Example: Motion parallel to image plane

Example: Motion perpendicular to image plane

Example: Motion perpendicular to image plane Points move along lines radiating rom the epipole: ocus o expansion Epipole is the principal point

Example: Motion perpendicular to image plane http://vimeo.com/48425421

Epipolar constraint X x x I we observe a point x in one image, where can the corresponding point x be in the other image?

Epipolar constraint X X X x x x x Potential matches or x have to lie on the corresponding epipolar line l. Potential matches or x have to lie on the corresponding epipolar line l.

Epipolar constraint example

Epipolar constraint: Calibrated case X x x Intrinsic and extrinsic parameters o the cameras are known, world coordinate system is set to that o the irst camera Then the projection matrices are given by K[I 0] and K [R t] We can multiply the projection matrices (and the image points) by the inverse o the calibration matrices to get normalized image coordinates: 1 1 xnorm = K xpixel = [ I 0] X, xʹ norm = Kʹ xʹ pixel = [ R t] X

Epipolar constraint: Calibrated case 0 x 1 X = (x,1) T x 1 [ I ] [ R t] x x = Rx+t t R The vectors Rx, t, and x are coplanar

Epipolar constraint: Calibrated case 0 )] ( [ = ʹ x R t x! x T [t ]Rx = 0 X x x = Rx+t b a b a ] [ 0 0 0 = = z y x x y x z y z b b b a a a a a a Recall: The vectors Rx, t, and x are coplanar

Epipolar constraint: Calibrated case X x x = Rx+t x ʹ [ t ( Rx)] = 0! x T [t ]Rx = 0! x T E x = 0 Essential Matrix (Longuet-Higgins, 1981) The vectors Rx, t, and x are coplanar

X x x Epipolar constraint: Calibrated case E x is the epipolar line associated with x (l' = E x) Recall: a line is given by ax + by + c = 0 or! x T E x = 0 = = = 1, where 0 y x c b a T x l x l

Epipolar constraint: Calibrated case X x x! x T E x = 0 E x is the epipolar line associated with x (l' = E x) E T x' is the epipolar line associated with x' (l = E T x') E e = 0 and E T e' = 0 E is singular (rank two) E has ive degrees o reedom

Epipolar constraint: Uncalibrated case X x x The calibration matrices K and K o the two cameras are unknown We can write the epipolar constraint in terms o unknown normalized coordinates: ˆ ʹ E xˆ = x T 0 xˆ = K 1 x, xˆ ʹ = Kʹ 1 xʹ

Epipolar constraint: Uncalibrated case X x x xˆ ʹ T E xˆ = 0 xʹ T F x = 0 with F = K T ʹ E K 1 xˆ xˆ ʹ = = K Kʹ 1 1 x xʹ Fundamental Matrix (Faugeras and Luong, 1992)

Epipolar constraint: Uncalibrated case X x x xˆ ʹ T T T E xˆ = 0 xʹ F x = 0 with F = Kʹ E K 1 F x is the epipolar line associated with x (l' = F x) F T x' is the epipolar line associated with x' (l = F T x') F e = 0 and F T e' = 0 F is singular (rank two) F has seven degrees o reedom

Estimating the undamental matrix

The eight-point algorithm T x = ( u, v,1), xʹ = ( uʹ, vʹ,1) 11 u 1 [ ʹ vʹ 1] v = 0 21 31 12 22 32 13 u [ uʹ u uʹ v uʹ vʹ u vʹ v vʹ u v 1] = 0 23 33 Solve homogeneous linear system using eight or more matches 11 12 13 21 22 23 31 32 33 Enorce rank-2 constraint (take SVD o F and throw out the smallest singular value)

Problem with eight-point algorithm [ ] 21 uʹ u uʹ v uʹ vʹ u vʹ v vʹ u v = 1 11 12 13 22 23 31 32

Problem with eight-point algorithm [ ] 21 uʹ u uʹ v uʹ vʹ u vʹ v vʹ u v = 1 Poor numerical conditioning Can be ixed by rescaling the data 11 12 13 22 23 31 32

The normalized eight-point algorithm (Hartley, 1995) Center the image data at the origin, and scale it so the mean squared distance between the origin and the data points is 2 pixels Use the eight-point algorithm to compute F rom the normalized points Enorce the rank-2 constraint (or example, take SVD o F and throw out the smallest singular value) Transorm undamental matrix back to original units: i T and T are the normalizing transormations in the two images, than the undamental matrix in original coordinates is T T F T

Nonlinear estimation Linear estimation minimizes the sum o squared algebraic distances between points x i and epipolar lines F x i (or points x i and epipolar lines F T x i ): N T ( x i! F x i ) 2 i=1 Nonlinear approach: minimize sum o squared geometric distances N i=1 " # d 2 ( x i!, F x i )+ d 2 (x i, F T x i!) $ % x i! x i F T x i! Fx i

Comparison o estimation algorithms 8-point Normalized 8-point Nonlinear least squares Av. Dist. 1 2.33 pixels 0.92 pixel 0.86 pixel Av. Dist. 2 2.18 pixels 0.85 pixel 0.80 pixel

The Fundamental Matrix Song http://danielwedge.com/matrix/

From epipolar geometry to camera calibration Estimating the undamental matrix is known as weak calibration I we know the calibration matrices o the two cameras, we can estimate the essential matrix: E = K T FK The essential matrix gives us the relative rotation and translation between the cameras, or their extrinsic parameters