Top Banner
Motion Estimation Srikumar Ramalingam Review Epipolar constraint Fundamental Matrix Motion Estimation Srikumar Ramalingam School of Computing University of Utah
102

Motion Estimation - School of Computingsrikumar/cv_spring2017_files/Lecture5.pdfMotion Estimation Srikumar Ramalingam Review Epipolar constraint Fundamental Matrix Epipolar Plane and

Mar 22, 2018

Download

Documents

dothu
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Motion Estimation - School of Computingsrikumar/cv_spring2017_files/Lecture5.pdfMotion Estimation Srikumar Ramalingam Review Epipolar constraint Fundamental Matrix Epipolar Plane and

MotionEstimation

SrikumarRamalingam

Review

Epipolarconstraint

FundamentalMatrix

Motion Estimation

Srikumar Ramalingam

School of ComputingUniversity of Utah

Page 2: Motion Estimation - School of Computingsrikumar/cv_spring2017_files/Lecture5.pdfMotion Estimation Srikumar Ramalingam Review Epipolar constraint Fundamental Matrix Epipolar Plane and

MotionEstimation

SrikumarRamalingam

Review

Epipolarconstraint

FundamentalMatrix

Presentation Outline

1 Review

2 Epipolar constraint

3 Fundamental Matrix

Page 3: Motion Estimation - School of Computingsrikumar/cv_spring2017_files/Lecture5.pdfMotion Estimation Srikumar Ramalingam Review Epipolar constraint Fundamental Matrix Epipolar Plane and

MotionEstimation

SrikumarRamalingam

Review

Epipolarconstraint

FundamentalMatrix

Three view triangulation

Qm1 = a + λ1b, Qm

2 = c + λ2d, Qm3 = e + λ3f

We can compute the required point Qm from theintersection of three rays.

What is the cost function to minimize?

Page 4: Motion Estimation - School of Computingsrikumar/cv_spring2017_files/Lecture5.pdfMotion Estimation Srikumar Ramalingam Review Epipolar constraint Fundamental Matrix Epipolar Plane and

MotionEstimation

SrikumarRamalingam

Review

Epipolarconstraint

FundamentalMatrix

Three view triangulation

Qm1 = a + λ1b, Qm

2 = c + λ2d, Qm3 = e + λ3f

We can compute the required point Qm from theintersection of three rays.

What is the cost function to minimize?

Page 5: Motion Estimation - School of Computingsrikumar/cv_spring2017_files/Lecture5.pdfMotion Estimation Srikumar Ramalingam Review Epipolar constraint Fundamental Matrix Epipolar Plane and

MotionEstimation

SrikumarRamalingam

Review

Epipolarconstraint

FundamentalMatrix

Three view triangulation

Qm1 = a + λ1b, Qm

2 = c + λ2d, Qm3 = e + λ3f

We can compute the required point Qm from theintersection of three rays.

What is the cost function to minimize?

Page 6: Motion Estimation - School of Computingsrikumar/cv_spring2017_files/Lecture5.pdfMotion Estimation Srikumar Ramalingam Review Epipolar constraint Fundamental Matrix Epipolar Plane and

MotionEstimation

SrikumarRamalingam

Review

Epipolarconstraint

FundamentalMatrix

Problem

Calibration matrices:

K1 = K2 = K3 =

200 0 3200 200 2400 0 1

Rotation matrices: R1 = R2 = R3 = I.

Translation matrices:t1 = 0, t2 = (100, 0, 0)T , t3 = (200, 0, 0)T .

Correspondence:

q1 =

5204401

q2 =

5004401

q3 =

4804401

Compute the 3D point Qm.

Page 7: Motion Estimation - School of Computingsrikumar/cv_spring2017_files/Lecture5.pdfMotion Estimation Srikumar Ramalingam Review Epipolar constraint Fundamental Matrix Epipolar Plane and

MotionEstimation

SrikumarRamalingam

Review

Epipolarconstraint

FundamentalMatrix

Problem

Calibration matrices:

K1 = K2 = K3 =

200 0 3200 200 2400 0 1

Rotation matrices: R1 = R2 = R3 = I.

Translation matrices:t1 = 0, t2 = (100, 0, 0)T , t3 = (200, 0, 0)T .

Correspondence:

q1 =

5204401

q2 =

5004401

q3 =

4804401

Compute the 3D point Qm.

Page 8: Motion Estimation - School of Computingsrikumar/cv_spring2017_files/Lecture5.pdfMotion Estimation Srikumar Ramalingam Review Epipolar constraint Fundamental Matrix Epipolar Plane and

MotionEstimation

SrikumarRamalingam

Review

Epipolarconstraint

FundamentalMatrix

Problem

Calibration matrices:

K1 = K2 = K3 =

200 0 3200 200 2400 0 1

Rotation matrices: R1 = R2 = R3 = I.

Translation matrices:t1 = 0, t2 = (100, 0, 0)T , t3 = (200, 0, 0)T .

Correspondence:

q1 =

5204401

q2 =

5004401

q3 =

4804401

Compute the 3D point Qm.

Page 9: Motion Estimation - School of Computingsrikumar/cv_spring2017_files/Lecture5.pdfMotion Estimation Srikumar Ramalingam Review Epipolar constraint Fundamental Matrix Epipolar Plane and

MotionEstimation

SrikumarRamalingam

Review

Epipolarconstraint

FundamentalMatrix

Problem

Calibration matrices:

K1 = K2 = K3 =

200 0 3200 200 2400 0 1

Rotation matrices: R1 = R2 = R3 = I.

Translation matrices:t1 = 0, t2 = (100, 0, 0)T , t3 = (200, 0, 0)T .

Correspondence:

q1 =

5204401

q2 =

5004401

q3 =

4804401

Compute the 3D point Qm.

Page 10: Motion Estimation - School of Computingsrikumar/cv_spring2017_files/Lecture5.pdfMotion Estimation Srikumar Ramalingam Review Epipolar constraint Fundamental Matrix Epipolar Plane and

MotionEstimation

SrikumarRamalingam

Review

Epipolarconstraint

FundamentalMatrix

Problem

Calibration matrices:

K1 = K2 = K3 =

200 0 3200 200 2400 0 1

Rotation matrices: R1 = R2 = R3 = I.

Translation matrices:t1 = 0, t2 = (100, 0, 0)T , t3 = (200, 0, 0)T .

Correspondence:

q1 =

5204401

q2 =

5004401

q3 =

4804401

Compute the 3D point Qm.

Page 11: Motion Estimation - School of Computingsrikumar/cv_spring2017_files/Lecture5.pdfMotion Estimation Srikumar Ramalingam Review Epipolar constraint Fundamental Matrix Epipolar Plane and

MotionEstimation

SrikumarRamalingam

Review

Epipolarconstraint

FundamentalMatrix

Problem

Calibration matrices:

K1 = K2 = K3 =

200 0 3200 200 2400 0 1

Rotation matrices: R1 = R2 = R3 = I.

Translation matrices:t1 = 0, t2 = (100, 0, 0)T , t3 = (200, 0, 0)T .

Correspondence:

q1 =

5204401

q2 =

5004401

q3 =

4804401

Compute the 3D point Qm.

Page 12: Motion Estimation - School of Computingsrikumar/cv_spring2017_files/Lecture5.pdfMotion Estimation Srikumar Ramalingam Review Epipolar constraint Fundamental Matrix Epipolar Plane and

MotionEstimation

SrikumarRamalingam

Review

Epipolarconstraint

FundamentalMatrix

How do you get keypoint correspondence?

We use keypoint and descriptor matching algorithms, e.g.,SIFT, BRIEF, etc.

What kind of constraints exist on the pointcorrespondences in two images?

Epipolar constraint

Page 13: Motion Estimation - School of Computingsrikumar/cv_spring2017_files/Lecture5.pdfMotion Estimation Srikumar Ramalingam Review Epipolar constraint Fundamental Matrix Epipolar Plane and

MotionEstimation

SrikumarRamalingam

Review

Epipolarconstraint

FundamentalMatrix

How do you get keypoint correspondence?

We use keypoint and descriptor matching algorithms, e.g.,SIFT, BRIEF, etc.

What kind of constraints exist on the pointcorrespondences in two images?

Epipolar constraint

Page 14: Motion Estimation - School of Computingsrikumar/cv_spring2017_files/Lecture5.pdfMotion Estimation Srikumar Ramalingam Review Epipolar constraint Fundamental Matrix Epipolar Plane and

MotionEstimation

SrikumarRamalingam

Review

Epipolarconstraint

FundamentalMatrix

How do you get keypoint correspondence?

We use keypoint and descriptor matching algorithms, e.g.,SIFT, BRIEF, etc.

What kind of constraints exist on the pointcorrespondences in two images?

Epipolar constraint

Page 15: Motion Estimation - School of Computingsrikumar/cv_spring2017_files/Lecture5.pdfMotion Estimation Srikumar Ramalingam Review Epipolar constraint Fundamental Matrix Epipolar Plane and

MotionEstimation

SrikumarRamalingam

Review

Epipolarconstraint

FundamentalMatrix

How do you get keypoint correspondence?

We use keypoint and descriptor matching algorithms, e.g.,SIFT, BRIEF, etc.

What kind of constraints exist on the pointcorrespondences in two images?

Epipolar constraint

Page 16: Motion Estimation - School of Computingsrikumar/cv_spring2017_files/Lecture5.pdfMotion Estimation Srikumar Ramalingam Review Epipolar constraint Fundamental Matrix Epipolar Plane and

MotionEstimation

SrikumarRamalingam

Review

Epipolarconstraint

FundamentalMatrix

Presentation Outline

1 Review

2 Epipolar constraint

3 Fundamental Matrix

Page 17: Motion Estimation - School of Computingsrikumar/cv_spring2017_files/Lecture5.pdfMotion Estimation Srikumar Ramalingam Review Epipolar constraint Fundamental Matrix Epipolar Plane and

MotionEstimation

SrikumarRamalingam

Review

Epipolarconstraint

FundamentalMatrix

What can you say about matching pixels?

Assume that we are given the calibration, rotation, andtranslation parameters for the two cameras.

We are given a single pixel q1 in the left image.

Let q2 be the unknown pixel in the second imagecorresponding to q1.

Given q1 can we find the location of q2?NO!

Page 18: Motion Estimation - School of Computingsrikumar/cv_spring2017_files/Lecture5.pdfMotion Estimation Srikumar Ramalingam Review Epipolar constraint Fundamental Matrix Epipolar Plane and

MotionEstimation

SrikumarRamalingam

Review

Epipolarconstraint

FundamentalMatrix

What can you say about matching pixels?

Assume that we are given the calibration, rotation, andtranslation parameters for the two cameras.

We are given a single pixel q1 in the left image.

Let q2 be the unknown pixel in the second imagecorresponding to q1.

Given q1 can we find the location of q2?NO!

Page 19: Motion Estimation - School of Computingsrikumar/cv_spring2017_files/Lecture5.pdfMotion Estimation Srikumar Ramalingam Review Epipolar constraint Fundamental Matrix Epipolar Plane and

MotionEstimation

SrikumarRamalingam

Review

Epipolarconstraint

FundamentalMatrix

What can you say about matching pixels?

Assume that we are given the calibration, rotation, andtranslation parameters for the two cameras.

We are given a single pixel q1 in the left image.

Let q2 be the unknown pixel in the second imagecorresponding to q1.

Given q1 can we find the location of q2?NO!

Page 20: Motion Estimation - School of Computingsrikumar/cv_spring2017_files/Lecture5.pdfMotion Estimation Srikumar Ramalingam Review Epipolar constraint Fundamental Matrix Epipolar Plane and

MotionEstimation

SrikumarRamalingam

Review

Epipolarconstraint

FundamentalMatrix

What can you say about matching pixels?

Assume that we are given the calibration, rotation, andtranslation parameters for the two cameras.

We are given a single pixel q1 in the left image.

Let q2 be the unknown pixel in the second imagecorresponding to q1.

Given q1 can we find the location of q2?NO!

Page 21: Motion Estimation - School of Computingsrikumar/cv_spring2017_files/Lecture5.pdfMotion Estimation Srikumar Ramalingam Review Epipolar constraint Fundamental Matrix Epipolar Plane and

MotionEstimation

SrikumarRamalingam

Review

Epipolarconstraint

FundamentalMatrix

What can you say about matching pixels?

Assume that we are given the calibration, rotation, andtranslation parameters for the two cameras.

We are given a single pixel q1 in the left image.

Let q2 be the unknown pixel in the second imagecorresponding to q1.

Given q1 can we find the location of q2?

NO!

Page 22: Motion Estimation - School of Computingsrikumar/cv_spring2017_files/Lecture5.pdfMotion Estimation Srikumar Ramalingam Review Epipolar constraint Fundamental Matrix Epipolar Plane and

MotionEstimation

SrikumarRamalingam

Review

Epipolarconstraint

FundamentalMatrix

What can you say about matching pixels?

Assume that we are given the calibration, rotation, andtranslation parameters for the two cameras.

We are given a single pixel q1 in the left image.

Let q2 be the unknown pixel in the second imagecorresponding to q1.

Given q1 can we find the location of q2?NO!

Page 23: Motion Estimation - School of Computingsrikumar/cv_spring2017_files/Lecture5.pdfMotion Estimation Srikumar Ramalingam Review Epipolar constraint Fundamental Matrix Epipolar Plane and

MotionEstimation

SrikumarRamalingam

Review

Epipolarconstraint

FundamentalMatrix

What can you say about matching pixels?

For simplicity, we don’t show the optical axis.

Page 24: Motion Estimation - School of Computingsrikumar/cv_spring2017_files/Lecture5.pdfMotion Estimation Srikumar Ramalingam Review Epipolar constraint Fundamental Matrix Epipolar Plane and

MotionEstimation

SrikumarRamalingam

Review

Epipolarconstraint

FundamentalMatrix

What can you say about matching pixels?

For simplicity, we don’t show the optical axis.

Page 25: Motion Estimation - School of Computingsrikumar/cv_spring2017_files/Lecture5.pdfMotion Estimation Srikumar Ramalingam Review Epipolar constraint Fundamental Matrix Epipolar Plane and

MotionEstimation

SrikumarRamalingam

Review

Epipolarconstraint

FundamentalMatrix

What can you say about matching pixels?

We consider different 3D points Qm on the backprojectionof q1.

We look at the forward projections of these 3D points onthe right image.

The different projections are the different possibilities forq2 given the position of q1.

Page 26: Motion Estimation - School of Computingsrikumar/cv_spring2017_files/Lecture5.pdfMotion Estimation Srikumar Ramalingam Review Epipolar constraint Fundamental Matrix Epipolar Plane and

MotionEstimation

SrikumarRamalingam

Review

Epipolarconstraint

FundamentalMatrix

What can you say about matching pixels?

We consider different 3D points Qm on the backprojectionof q1.

We look at the forward projections of these 3D points onthe right image.

The different projections are the different possibilities forq2 given the position of q1.

Page 27: Motion Estimation - School of Computingsrikumar/cv_spring2017_files/Lecture5.pdfMotion Estimation Srikumar Ramalingam Review Epipolar constraint Fundamental Matrix Epipolar Plane and

MotionEstimation

SrikumarRamalingam

Review

Epipolarconstraint

FundamentalMatrix

What can you say about matching pixels?

We consider different 3D points Qm on the backprojectionof q1.

We look at the forward projections of these 3D points onthe right image.

The different projections are the different possibilities forq2 given the position of q1.

Page 28: Motion Estimation - School of Computingsrikumar/cv_spring2017_files/Lecture5.pdfMotion Estimation Srikumar Ramalingam Review Epipolar constraint Fundamental Matrix Epipolar Plane and

MotionEstimation

SrikumarRamalingam

Review

Epipolarconstraint

FundamentalMatrix

What can you say about matching pixels?

We consider different 3D points Qm on the backprojectionof q1.

We look at the forward projections of these 3D points onthe right image.

The different projections are the different possibilities forq2 given the position of q1.

Page 29: Motion Estimation - School of Computingsrikumar/cv_spring2017_files/Lecture5.pdfMotion Estimation Srikumar Ramalingam Review Epipolar constraint Fundamental Matrix Epipolar Plane and

MotionEstimation

SrikumarRamalingam

Review

Epipolarconstraint

FundamentalMatrix

What can you say about matching pixels?

What is the parametric curve that passes through differentpossible locations of q2?

Page 30: Motion Estimation - School of Computingsrikumar/cv_spring2017_files/Lecture5.pdfMotion Estimation Srikumar Ramalingam Review Epipolar constraint Fundamental Matrix Epipolar Plane and

MotionEstimation

SrikumarRamalingam

Review

Epipolarconstraint

FundamentalMatrix

What can you say about matching pixels?

What is the parametric curve that passes through differentpossible locations of q2?

Page 31: Motion Estimation - School of Computingsrikumar/cv_spring2017_files/Lecture5.pdfMotion Estimation Srikumar Ramalingam Review Epipolar constraint Fundamental Matrix Epipolar Plane and

MotionEstimation

SrikumarRamalingam

Review

Epipolarconstraint

FundamentalMatrix

What can you say about matching pixels?

It is a straight line.

Page 32: Motion Estimation - School of Computingsrikumar/cv_spring2017_files/Lecture5.pdfMotion Estimation Srikumar Ramalingam Review Epipolar constraint Fundamental Matrix Epipolar Plane and

MotionEstimation

SrikumarRamalingam

Review

Epipolarconstraint

FundamentalMatrix

What can you say about matching pixels?

It is a straight line.

Page 33: Motion Estimation - School of Computingsrikumar/cv_spring2017_files/Lecture5.pdfMotion Estimation Srikumar Ramalingam Review Epipolar constraint Fundamental Matrix Epipolar Plane and

MotionEstimation

SrikumarRamalingam

Review

Epipolarconstraint

FundamentalMatrix

What can you say about matching pixels?

What can you say if q2 is given and we are interested infinding the location of q1.

Page 34: Motion Estimation - School of Computingsrikumar/cv_spring2017_files/Lecture5.pdfMotion Estimation Srikumar Ramalingam Review Epipolar constraint Fundamental Matrix Epipolar Plane and

MotionEstimation

SrikumarRamalingam

Review

Epipolarconstraint

FundamentalMatrix

What can you say about matching pixels?

What can you say if q2 is given and we are interested infinding the location of q1.

Page 35: Motion Estimation - School of Computingsrikumar/cv_spring2017_files/Lecture5.pdfMotion Estimation Srikumar Ramalingam Review Epipolar constraint Fundamental Matrix Epipolar Plane and

MotionEstimation

SrikumarRamalingam

Review

Epipolarconstraint

FundamentalMatrix

What can you say about matching pixels?

Yes, it is also a straight line.

Given a pixel in one image, the corresponding pixel in theother image is constrained to lie on a straight line.

Page 36: Motion Estimation - School of Computingsrikumar/cv_spring2017_files/Lecture5.pdfMotion Estimation Srikumar Ramalingam Review Epipolar constraint Fundamental Matrix Epipolar Plane and

MotionEstimation

SrikumarRamalingam

Review

Epipolarconstraint

FundamentalMatrix

What can you say about matching pixels?

Yes, it is also a straight line.

Given a pixel in one image, the corresponding pixel in theother image is constrained to lie on a straight line.

Page 37: Motion Estimation - School of Computingsrikumar/cv_spring2017_files/Lecture5.pdfMotion Estimation Srikumar Ramalingam Review Epipolar constraint Fundamental Matrix Epipolar Plane and

MotionEstimation

SrikumarRamalingam

Review

Epipolarconstraint

FundamentalMatrix

What can you say about matching pixels?

Yes, it is also a straight line.

Given a pixel in one image, the corresponding pixel in theother image is constrained to lie on a straight line.

Page 38: Motion Estimation - School of Computingsrikumar/cv_spring2017_files/Lecture5.pdfMotion Estimation Srikumar Ramalingam Review Epipolar constraint Fundamental Matrix Epipolar Plane and

MotionEstimation

SrikumarRamalingam

Review

Epipolarconstraint

FundamentalMatrix

Epipolar Plane and Epipoles

Epipolar plane is the plane formed by the two cameracenters (O1,O2) and a 3D point Qm.

The line joining the two camera centers intersect theimage planes at points that we refer to as epipoles.

The epipole in the first image is denoted by e1. Theepipole in the second image is denoted by e2.

Page 39: Motion Estimation - School of Computingsrikumar/cv_spring2017_files/Lecture5.pdfMotion Estimation Srikumar Ramalingam Review Epipolar constraint Fundamental Matrix Epipolar Plane and

MotionEstimation

SrikumarRamalingam

Review

Epipolarconstraint

FundamentalMatrix

Epipolar Plane and Epipoles

Epipolar plane is the plane formed by the two cameracenters (O1,O2) and a 3D point Qm.

The line joining the two camera centers intersect theimage planes at points that we refer to as epipoles.

The epipole in the first image is denoted by e1. Theepipole in the second image is denoted by e2.

Page 40: Motion Estimation - School of Computingsrikumar/cv_spring2017_files/Lecture5.pdfMotion Estimation Srikumar Ramalingam Review Epipolar constraint Fundamental Matrix Epipolar Plane and

MotionEstimation

SrikumarRamalingam

Review

Epipolarconstraint

FundamentalMatrix

Epipolar Plane and Epipoles

Epipolar plane is the plane formed by the two cameracenters (O1,O2) and a 3D point Qm.

The line joining the two camera centers intersect theimage planes at points that we refer to as epipoles.

The epipole in the first image is denoted by e1. Theepipole in the second image is denoted by e2.

Page 41: Motion Estimation - School of Computingsrikumar/cv_spring2017_files/Lecture5.pdfMotion Estimation Srikumar Ramalingam Review Epipolar constraint Fundamental Matrix Epipolar Plane and

MotionEstimation

SrikumarRamalingam

Review

Epipolarconstraint

FundamentalMatrix

Epipolar Plane and Epipoles

Epipolar plane is the plane formed by the two cameracenters (O1,O2) and a 3D point Qm.

The line joining the two camera centers intersect theimage planes at points that we refer to as epipoles.

The epipole in the first image is denoted by e1. Theepipole in the second image is denoted by e2.

Page 42: Motion Estimation - School of Computingsrikumar/cv_spring2017_files/Lecture5.pdfMotion Estimation Srikumar Ramalingam Review Epipolar constraint Fundamental Matrix Epipolar Plane and

MotionEstimation

SrikumarRamalingam

Review

Epipolarconstraint

FundamentalMatrix

Epipolar Lines

Given a pixel q1, the corresponding pixel q2 lies on a linein the right image that we refer to as epipolar line l2. Notethat this line passes through the epipole e2.

The epipolar line in the first image is denoted by l1 and itjoins q1 and e1.

Note that the epipoles depend only on rotation,translation, and calibration parameters of the two cameras.

Page 43: Motion Estimation - School of Computingsrikumar/cv_spring2017_files/Lecture5.pdfMotion Estimation Srikumar Ramalingam Review Epipolar constraint Fundamental Matrix Epipolar Plane and

MotionEstimation

SrikumarRamalingam

Review

Epipolarconstraint

FundamentalMatrix

Epipolar Lines

Given a pixel q1, the corresponding pixel q2 lies on a linein the right image that we refer to as epipolar line l2. Notethat this line passes through the epipole e2.

The epipolar line in the first image is denoted by l1 and itjoins q1 and e1.

Note that the epipoles depend only on rotation,translation, and calibration parameters of the two cameras.

Page 44: Motion Estimation - School of Computingsrikumar/cv_spring2017_files/Lecture5.pdfMotion Estimation Srikumar Ramalingam Review Epipolar constraint Fundamental Matrix Epipolar Plane and

MotionEstimation

SrikumarRamalingam

Review

Epipolarconstraint

FundamentalMatrix

Epipolar Lines

Given a pixel q1, the corresponding pixel q2 lies on a linein the right image that we refer to as epipolar line l2. Notethat this line passes through the epipole e2.

The epipolar line in the first image is denoted by l1 and itjoins q1 and e1.

Note that the epipoles depend only on rotation,translation, and calibration parameters of the two cameras.

Page 45: Motion Estimation - School of Computingsrikumar/cv_spring2017_files/Lecture5.pdfMotion Estimation Srikumar Ramalingam Review Epipolar constraint Fundamental Matrix Epipolar Plane and

MotionEstimation

SrikumarRamalingam

Review

Epipolarconstraint

FundamentalMatrix

Epipolar Lines

Given a pixel q1, the corresponding pixel q2 lies on a linein the right image that we refer to as epipolar line l2. Notethat this line passes through the epipole e2.

The epipolar line in the first image is denoted by l1 and itjoins q1 and e1.

Note that the epipoles depend only on rotation,translation, and calibration parameters of the two cameras.

Page 46: Motion Estimation - School of Computingsrikumar/cv_spring2017_files/Lecture5.pdfMotion Estimation Srikumar Ramalingam Review Epipolar constraint Fundamental Matrix Epipolar Plane and

MotionEstimation

SrikumarRamalingam

Review

Epipolarconstraint

FundamentalMatrix

Family of epipolar planes

For every pair of matching pixels, we can think of anepipolar plane formed by the optical centers and the 3Dpoint.

All the epipolar planes pass through the epipoles. Thusthe epipolar lines can be seen as family of lines passingthrough a single point.

Page 47: Motion Estimation - School of Computingsrikumar/cv_spring2017_files/Lecture5.pdfMotion Estimation Srikumar Ramalingam Review Epipolar constraint Fundamental Matrix Epipolar Plane and

MotionEstimation

SrikumarRamalingam

Review

Epipolarconstraint

FundamentalMatrix

Family of epipolar planes

For every pair of matching pixels, we can think of anepipolar plane formed by the optical centers and the 3Dpoint.

All the epipolar planes pass through the epipoles. Thusthe epipolar lines can be seen as family of lines passingthrough a single point.

Page 48: Motion Estimation - School of Computingsrikumar/cv_spring2017_files/Lecture5.pdfMotion Estimation Srikumar Ramalingam Review Epipolar constraint Fundamental Matrix Epipolar Plane and

MotionEstimation

SrikumarRamalingam

Review

Epipolarconstraint

FundamentalMatrix

Family of epipolar planes

For every pair of matching pixels, we can think of anepipolar plane formed by the optical centers and the 3Dpoint.

All the epipolar planes pass through the epipoles. Thusthe epipolar lines can be seen as family of lines passingthrough a single point.

Page 49: Motion Estimation - School of Computingsrikumar/cv_spring2017_files/Lecture5.pdfMotion Estimation Srikumar Ramalingam Review Epipolar constraint Fundamental Matrix Epipolar Plane and

MotionEstimation

SrikumarRamalingam

Review

Epipolarconstraint

FundamentalMatrix

Derivation of the epipolar line

Given a pixel q1, the corresponding pixel q2 lies onepipolar line l2.

The epipolar line l2 in the right image is the line joiningthe e2 and q2 on the right image.

Let the forward projections be given by:q1 ∼ K1R1(I− t1)Qm. q2 ∼ K2R2(I− t2)Qm.

Page 50: Motion Estimation - School of Computingsrikumar/cv_spring2017_files/Lecture5.pdfMotion Estimation Srikumar Ramalingam Review Epipolar constraint Fundamental Matrix Epipolar Plane and

MotionEstimation

SrikumarRamalingam

Review

Epipolarconstraint

FundamentalMatrix

Derivation of the epipolar line

Given a pixel q1, the corresponding pixel q2 lies onepipolar line l2.

The epipolar line l2 in the right image is the line joiningthe e2 and q2 on the right image.

Let the forward projections be given by:q1 ∼ K1R1(I− t1)Qm. q2 ∼ K2R2(I− t2)Qm.

Page 51: Motion Estimation - School of Computingsrikumar/cv_spring2017_files/Lecture5.pdfMotion Estimation Srikumar Ramalingam Review Epipolar constraint Fundamental Matrix Epipolar Plane and

MotionEstimation

SrikumarRamalingam

Review

Epipolarconstraint

FundamentalMatrix

Derivation of the epipolar line

Given a pixel q1, the corresponding pixel q2 lies onepipolar line l2.

The epipolar line l2 in the right image is the line joiningthe e2 and q2 on the right image.

Let the forward projections be given by:q1 ∼ K1R1(I− t1)Qm. q2 ∼ K2R2(I− t2)Qm.

Page 52: Motion Estimation - School of Computingsrikumar/cv_spring2017_files/Lecture5.pdfMotion Estimation Srikumar Ramalingam Review Epipolar constraint Fundamental Matrix Epipolar Plane and

MotionEstimation

SrikumarRamalingam

Review

Epipolarconstraint

FundamentalMatrix

Derivation of the epipolar line

Given a pixel q1, the corresponding pixel q2 lies onepipolar line l2.

The epipolar line l2 in the right image is the line joiningthe e2 and q2 on the right image.

Let the forward projections be given by:q1 ∼ K1R1(I− t1)Qm. q2 ∼ K2R2(I− t2)Qm.

Page 53: Motion Estimation - School of Computingsrikumar/cv_spring2017_files/Lecture5.pdfMotion Estimation Srikumar Ramalingam Review Epipolar constraint Fundamental Matrix Epipolar Plane and

MotionEstimation

SrikumarRamalingam

Review

Epipolarconstraint

FundamentalMatrix

Derivation of the epipolar line

The epipole e2 is the projection of the left camera centeron the right image. The left camera center is given by t1.

A 3D point on the back-projected ray of q1 is given byRT1 K−1

1 q1 + t1. We obtain q2 by projecting this point onthe right image.

Page 54: Motion Estimation - School of Computingsrikumar/cv_spring2017_files/Lecture5.pdfMotion Estimation Srikumar Ramalingam Review Epipolar constraint Fundamental Matrix Epipolar Plane and

MotionEstimation

SrikumarRamalingam

Review

Epipolarconstraint

FundamentalMatrix

Derivation of the epipolar line

The epipole e2 is the projection of the left camera centeron the right image. The left camera center is given by t1.

A 3D point on the back-projected ray of q1 is given byRT1 K−1

1 q1 + t1. We obtain q2 by projecting this point onthe right image.

Page 55: Motion Estimation - School of Computingsrikumar/cv_spring2017_files/Lecture5.pdfMotion Estimation Srikumar Ramalingam Review Epipolar constraint Fundamental Matrix Epipolar Plane and

MotionEstimation

SrikumarRamalingam

Review

Epipolarconstraint

FundamentalMatrix

Derivation of the epipolar line

The epipole e2 is the projection of the left camera centeron the right image. The left camera center is given by t1.

A 3D point on the back-projected ray of q1 is given byRT1 K−1

1 q1 + t1. We obtain q2 by projecting this point onthe right image.

Page 56: Motion Estimation - School of Computingsrikumar/cv_spring2017_files/Lecture5.pdfMotion Estimation Srikumar Ramalingam Review Epipolar constraint Fundamental Matrix Epipolar Plane and

MotionEstimation

SrikumarRamalingam

Review

Epipolarconstraint

FundamentalMatrix

Derivation of the epipolar line

e2 ∼ K2R2(I− t2)

(t11

)q2 ∼ K2R2(I− t2)

(RT1 K−1

1 q1 + t11

)

Page 57: Motion Estimation - School of Computingsrikumar/cv_spring2017_files/Lecture5.pdfMotion Estimation Srikumar Ramalingam Review Epipolar constraint Fundamental Matrix Epipolar Plane and

MotionEstimation

SrikumarRamalingam

Review

Epipolarconstraint

FundamentalMatrix

Derivation of the epipolar line

e2 ∼ K2R2(I− t2)

(t11

)q2 ∼ K2R2(I− t2)

(RT1 K−1

1 q1 + t11

)

Page 58: Motion Estimation - School of Computingsrikumar/cv_spring2017_files/Lecture5.pdfMotion Estimation Srikumar Ramalingam Review Epipolar constraint Fundamental Matrix Epipolar Plane and

MotionEstimation

SrikumarRamalingam

Review

Epipolarconstraint

FundamentalMatrix

Derivation of the epipolar line

e2 ∼ K2R2(t1 − t2)

q2 ∼ K2R2(RT1 K−1

1 q1 + (t1 − t2))

Page 59: Motion Estimation - School of Computingsrikumar/cv_spring2017_files/Lecture5.pdfMotion Estimation Srikumar Ramalingam Review Epipolar constraint Fundamental Matrix Epipolar Plane and

MotionEstimation

SrikumarRamalingam

Review

Epipolarconstraint

FundamentalMatrix

Derivation of the epipolar line

e2 ∼ K2R2(t1 − t2)

q2 ∼ K2R2(RT1 K−1

1 q1 + (t1 − t2))

Page 60: Motion Estimation - School of Computingsrikumar/cv_spring2017_files/Lecture5.pdfMotion Estimation Srikumar Ramalingam Review Epipolar constraint Fundamental Matrix Epipolar Plane and

MotionEstimation

SrikumarRamalingam

Review

Epipolarconstraint

FundamentalMatrix

Derivation of the epipolar line

The epipolar line l2 can by obtained from thecross-product of e2 and q2.

Note that Mx×My ∼ M−T (x× y).

Thus we have:

l2 ∼ e2 × q2

∼ K2R2(t1 − t2)× K2R2(RT1 K−1

1 q1 + (t1 − t2))

Page 61: Motion Estimation - School of Computingsrikumar/cv_spring2017_files/Lecture5.pdfMotion Estimation Srikumar Ramalingam Review Epipolar constraint Fundamental Matrix Epipolar Plane and

MotionEstimation

SrikumarRamalingam

Review

Epipolarconstraint

FundamentalMatrix

Derivation of the epipolar line

The epipolar line l2 can by obtained from thecross-product of e2 and q2.

Note that Mx×My ∼ M−T (x× y).

Thus we have:

l2 ∼ e2 × q2

∼ K2R2(t1 − t2)× K2R2(RT1 K−1

1 q1 + (t1 − t2))

Page 62: Motion Estimation - School of Computingsrikumar/cv_spring2017_files/Lecture5.pdfMotion Estimation Srikumar Ramalingam Review Epipolar constraint Fundamental Matrix Epipolar Plane and

MotionEstimation

SrikumarRamalingam

Review

Epipolarconstraint

FundamentalMatrix

Derivation of the epipolar line

The epipolar line l2 can by obtained from thecross-product of e2 and q2.

Note that Mx×My ∼ M−T (x× y).

Thus we have:

l2 ∼ e2 × q2

∼ K2R2(t1 − t2)× K2R2(RT1 K−1

1 q1 + (t1 − t2))

Page 63: Motion Estimation - School of Computingsrikumar/cv_spring2017_files/Lecture5.pdfMotion Estimation Srikumar Ramalingam Review Epipolar constraint Fundamental Matrix Epipolar Plane and

MotionEstimation

SrikumarRamalingam

Review

Epipolarconstraint

FundamentalMatrix

Derivation of the epipolar line

The epipolar line l2 can by obtained from thecross-product of e2 and q2.

Note that Mx×My ∼ M−T (x× y).

Thus we have:

l2 ∼ e2 × q2

∼ K2R2(t1 − t2)× K2R2(RT1 K−1

1 q1 + (t1 − t2))

Page 64: Motion Estimation - School of Computingsrikumar/cv_spring2017_files/Lecture5.pdfMotion Estimation Srikumar Ramalingam Review Epipolar constraint Fundamental Matrix Epipolar Plane and

MotionEstimation

SrikumarRamalingam

Review

Epipolarconstraint

FundamentalMatrix

Derivation of the epipolar line

e2 × q2

∼ (K2R2)−T ((t1 − t2)× (RT1 K−1

1 q1 + (t1 − t2))

Since a× (b + c) = a× b + a× c and a× a = 0, we have:

l2 ∼ (K2R2)−T ((t1 − t2)× RT1 K−1

1 q1)

Page 65: Motion Estimation - School of Computingsrikumar/cv_spring2017_files/Lecture5.pdfMotion Estimation Srikumar Ramalingam Review Epipolar constraint Fundamental Matrix Epipolar Plane and

MotionEstimation

SrikumarRamalingam

Review

Epipolarconstraint

FundamentalMatrix

Derivation of the epipolar line

e2 × q2

∼ (K2R2)−T ((t1 − t2)× (RT1 K−1

1 q1 + (t1 − t2))

Since a× (b + c) = a× b + a× c and a× a = 0, we have:

l2 ∼ (K2R2)−T ((t1 − t2)× RT1 K−1

1 q1)

Page 66: Motion Estimation - School of Computingsrikumar/cv_spring2017_files/Lecture5.pdfMotion Estimation Srikumar Ramalingam Review Epipolar constraint Fundamental Matrix Epipolar Plane and

MotionEstimation

SrikumarRamalingam

Review

Epipolarconstraint

FundamentalMatrix

Derivation of the epipolar line

e2 × q2

∼ (K2R2)−T ((t1 − t2)× (RT1 K−1

1 q1 + (t1 − t2))

Since a× (b + c) = a× b + a× c and a× a = 0, we have:

l2 ∼ (K2R2)−T ((t1 − t2)× RT1 K−1

1 q1)

Page 67: Motion Estimation - School of Computingsrikumar/cv_spring2017_files/Lecture5.pdfMotion Estimation Srikumar Ramalingam Review Epipolar constraint Fundamental Matrix Epipolar Plane and

MotionEstimation

SrikumarRamalingam

Review

Epipolarconstraint

FundamentalMatrix

Derivation of the epipolar line

l2 ∼ (K2R2)−T ((t1 − t2)× RT1 K−1

1 q1)

Skew-symmetrix matrix of any 3× 1 vector a is givenbelow:

[a]× =

0 −a3 a2a3 0 −a1−a2 a1 0

Page 68: Motion Estimation - School of Computingsrikumar/cv_spring2017_files/Lecture5.pdfMotion Estimation Srikumar Ramalingam Review Epipolar constraint Fundamental Matrix Epipolar Plane and

MotionEstimation

SrikumarRamalingam

Review

Epipolarconstraint

FundamentalMatrix

Derivation of the epipolar line

l2 ∼ (K2R2)−T ((t1 − t2)× RT1 K−1

1 q1)

Skew-symmetrix matrix of any 3× 1 vector a is givenbelow:

[a]× =

0 −a3 a2a3 0 −a1−a2 a1 0

Page 69: Motion Estimation - School of Computingsrikumar/cv_spring2017_files/Lecture5.pdfMotion Estimation Srikumar Ramalingam Review Epipolar constraint Fundamental Matrix Epipolar Plane and

MotionEstimation

SrikumarRamalingam

Review

Epipolarconstraint

FundamentalMatrix

Derivation of the epipolar line

l2 ∼ (K2R2)−T ((t1 − t2)× RT1 K−1

1 q1)

Skew-symmetrix matrix of any 3× 1 vector a is givenbelow:

[a]× =

0 −a3 a2a3 0 −a1−a2 a1 0

Page 70: Motion Estimation - School of Computingsrikumar/cv_spring2017_files/Lecture5.pdfMotion Estimation Srikumar Ramalingam Review Epipolar constraint Fundamental Matrix Epipolar Plane and

MotionEstimation

SrikumarRamalingam

Review

Epipolarconstraint

FundamentalMatrix

Derivation of the epipolar line

l2 ∼ (K2R2)−T ((t1 − t2)× RT1 K−1

1 q1)

We know that the cross-product of two 3× 1 vectors aand b can be written as follows:

a× b = [a]×b

l2 ∼ (K2R2)−T ([t1 − t2]×RT1 K−1

1 q1)

Page 71: Motion Estimation - School of Computingsrikumar/cv_spring2017_files/Lecture5.pdfMotion Estimation Srikumar Ramalingam Review Epipolar constraint Fundamental Matrix Epipolar Plane and

MotionEstimation

SrikumarRamalingam

Review

Epipolarconstraint

FundamentalMatrix

Derivation of the epipolar line

l2 ∼ (K2R2)−T ((t1 − t2)× RT1 K−1

1 q1)

We know that the cross-product of two 3× 1 vectors aand b can be written as follows:

a× b = [a]×b

l2 ∼ (K2R2)−T ([t1 − t2]×RT1 K−1

1 q1)

Page 72: Motion Estimation - School of Computingsrikumar/cv_spring2017_files/Lecture5.pdfMotion Estimation Srikumar Ramalingam Review Epipolar constraint Fundamental Matrix Epipolar Plane and

MotionEstimation

SrikumarRamalingam

Review

Epipolarconstraint

FundamentalMatrix

Derivation of the epipolar line

l2 ∼ (K2R2)−T ((t1 − t2)× RT1 K−1

1 q1)

We know that the cross-product of two 3× 1 vectors aand b can be written as follows:

a× b = [a]×b

l2 ∼ (K2R2)−T ([t1 − t2]×RT1 K−1

1 q1)

Page 73: Motion Estimation - School of Computingsrikumar/cv_spring2017_files/Lecture5.pdfMotion Estimation Srikumar Ramalingam Review Epipolar constraint Fundamental Matrix Epipolar Plane and

MotionEstimation

SrikumarRamalingam

Review

Epipolarconstraint

FundamentalMatrix

Derivation of the epipolar line

l2 ∼ (K2R2)−T ((t1 − t2)× RT1 K−1

1 q1)

We know that the cross-product of two 3× 1 vectors aand b can be written as follows:

a× b = [a]×b

l2 ∼ (K2R2)−T ([t1 − t2]×RT1 K−1

1 q1)

Page 74: Motion Estimation - School of Computingsrikumar/cv_spring2017_files/Lecture5.pdfMotion Estimation Srikumar Ramalingam Review Epipolar constraint Fundamental Matrix Epipolar Plane and

MotionEstimation

SrikumarRamalingam

Review

Epipolarconstraint

FundamentalMatrix

Derivation of the epipolar line

l2 ∼ (K2R2)−T ([t1 − t2]×RT1 K−1

1 q1)

l2 ∼ (K2R2)−T [t1 − t2]×(RT1 K−1

1 )q1

Here we can see the transformation of a point q1 in theleft image to a line l2 in the right image using a 3× 3matrix (K2R2)−T [t1 − t2]×(RT

1 K−11 ).

Page 75: Motion Estimation - School of Computingsrikumar/cv_spring2017_files/Lecture5.pdfMotion Estimation Srikumar Ramalingam Review Epipolar constraint Fundamental Matrix Epipolar Plane and

MotionEstimation

SrikumarRamalingam

Review

Epipolarconstraint

FundamentalMatrix

Derivation of the epipolar line

l2 ∼ (K2R2)−T ([t1 − t2]×RT1 K−1

1 q1)

l2 ∼ (K2R2)−T [t1 − t2]×(RT1 K−1

1 )q1

Here we can see the transformation of a point q1 in theleft image to a line l2 in the right image using a 3× 3matrix (K2R2)−T [t1 − t2]×(RT

1 K−11 ).

Page 76: Motion Estimation - School of Computingsrikumar/cv_spring2017_files/Lecture5.pdfMotion Estimation Srikumar Ramalingam Review Epipolar constraint Fundamental Matrix Epipolar Plane and

MotionEstimation

SrikumarRamalingam

Review

Epipolarconstraint

FundamentalMatrix

Derivation of the epipolar line

l2 ∼ (K2R2)−T ([t1 − t2]×RT1 K−1

1 q1)

l2 ∼ (K2R2)−T [t1 − t2]×(RT1 K−1

1 )q1

Here we can see the transformation of a point q1 in theleft image to a line l2 in the right image using a 3× 3matrix (K2R2)−T [t1 − t2]×(RT

1 K−11 ).

Page 77: Motion Estimation - School of Computingsrikumar/cv_spring2017_files/Lecture5.pdfMotion Estimation Srikumar Ramalingam Review Epipolar constraint Fundamental Matrix Epipolar Plane and

MotionEstimation

SrikumarRamalingam

Review

Epipolarconstraint

FundamentalMatrix

Presentation Outline

1 Review

2 Epipolar constraint

3 Fundamental Matrix

Page 78: Motion Estimation - School of Computingsrikumar/cv_spring2017_files/Lecture5.pdfMotion Estimation Srikumar Ramalingam Review Epipolar constraint Fundamental Matrix Epipolar Plane and

MotionEstimation

SrikumarRamalingam

Review

Epipolarconstraint

FundamentalMatrix

Fundamental Matrix

The 3× 3 matrix is the celebrated fundamental matrix:F12 = (K2R2)−T [t1 − t2]×(RT

1 K−11 )

This matrix encodes the epipolar geometry.

We know that qT2 l2 = 0. Thus we have the following:

qT2 F12q1 = 0

Page 79: Motion Estimation - School of Computingsrikumar/cv_spring2017_files/Lecture5.pdfMotion Estimation Srikumar Ramalingam Review Epipolar constraint Fundamental Matrix Epipolar Plane and

MotionEstimation

SrikumarRamalingam

Review

Epipolarconstraint

FundamentalMatrix

Fundamental Matrix

The 3× 3 matrix is the celebrated fundamental matrix:F12 = (K2R2)−T [t1 − t2]×(RT

1 K−11 )

This matrix encodes the epipolar geometry.

We know that qT2 l2 = 0. Thus we have the following:

qT2 F12q1 = 0

Page 80: Motion Estimation - School of Computingsrikumar/cv_spring2017_files/Lecture5.pdfMotion Estimation Srikumar Ramalingam Review Epipolar constraint Fundamental Matrix Epipolar Plane and

MotionEstimation

SrikumarRamalingam

Review

Epipolarconstraint

FundamentalMatrix

Fundamental Matrix

The 3× 3 matrix is the celebrated fundamental matrix:F12 = (K2R2)−T [t1 − t2]×(RT

1 K−11 )

This matrix encodes the epipolar geometry.

We know that qT2 l2 = 0. Thus we have the following:

qT2 F12q1 = 0

Page 81: Motion Estimation - School of Computingsrikumar/cv_spring2017_files/Lecture5.pdfMotion Estimation Srikumar Ramalingam Review Epipolar constraint Fundamental Matrix Epipolar Plane and

MotionEstimation

SrikumarRamalingam

Review

Epipolarconstraint

FundamentalMatrix

Fundamental Matrix

The 3× 3 matrix is the celebrated fundamental matrix:F12 = (K2R2)−T [t1 − t2]×(RT

1 K−11 )

This matrix encodes the epipolar geometry.

We know that qT2 l2 = 0. Thus we have the following:

qT2 F12q1 = 0

Page 82: Motion Estimation - School of Computingsrikumar/cv_spring2017_files/Lecture5.pdfMotion Estimation Srikumar Ramalingam Review Epipolar constraint Fundamental Matrix Epipolar Plane and

MotionEstimation

SrikumarRamalingam

Review

Epipolarconstraint

FundamentalMatrix

Fundamental Matrix

We can have the following equation based on the epipolarline l1

qT1 F21q2 = 0

For simplicity we will only consider the following equation:

qT2 Fq1 = 0

This constraint is the so-called epipolar constraint.

Page 83: Motion Estimation - School of Computingsrikumar/cv_spring2017_files/Lecture5.pdfMotion Estimation Srikumar Ramalingam Review Epipolar constraint Fundamental Matrix Epipolar Plane and

MotionEstimation

SrikumarRamalingam

Review

Epipolarconstraint

FundamentalMatrix

Fundamental Matrix

We can have the following equation based on the epipolarline l1

qT1 F21q2 = 0

For simplicity we will only consider the following equation:

qT2 Fq1 = 0

This constraint is the so-called epipolar constraint.

Page 84: Motion Estimation - School of Computingsrikumar/cv_spring2017_files/Lecture5.pdfMotion Estimation Srikumar Ramalingam Review Epipolar constraint Fundamental Matrix Epipolar Plane and

MotionEstimation

SrikumarRamalingam

Review

Epipolarconstraint

FundamentalMatrix

Fundamental Matrix

We can have the following equation based on the epipolarline l1

qT1 F21q2 = 0

For simplicity we will only consider the following equation:

qT2 Fq1 = 0

This constraint is the so-called epipolar constraint.

Page 85: Motion Estimation - School of Computingsrikumar/cv_spring2017_files/Lecture5.pdfMotion Estimation Srikumar Ramalingam Review Epipolar constraint Fundamental Matrix Epipolar Plane and

MotionEstimation

SrikumarRamalingam

Review

Epipolarconstraint

FundamentalMatrix

Fundamental Matrix

We can have the following equation based on the epipolarline l1

qT1 F21q2 = 0

For simplicity we will only consider the following equation:

qT2 Fq1 = 0

This constraint is the so-called epipolar constraint.

Page 86: Motion Estimation - School of Computingsrikumar/cv_spring2017_files/Lecture5.pdfMotion Estimation Srikumar Ramalingam Review Epipolar constraint Fundamental Matrix Epipolar Plane and

MotionEstimation

SrikumarRamalingam

Review

Epipolarconstraint

FundamentalMatrix

Computation of Fundamental matrix

Calibration matrices:

K1 = K2 =

200 0 3200 200 2400 0 1

Rotation matrices:R1 = R2 = I.

Translation matrices: t1 = 0, t2 = (100, 0, 0)T .

Correspondences: q1 = (520, 440, 1)T ,q2 = (500, 440, 1)T

Compute the fundamental matrix F and show thatqT2 Fq1 = 0.

Find the two epipoles and epipolar lines.

Page 87: Motion Estimation - School of Computingsrikumar/cv_spring2017_files/Lecture5.pdfMotion Estimation Srikumar Ramalingam Review Epipolar constraint Fundamental Matrix Epipolar Plane and

MotionEstimation

SrikumarRamalingam

Review

Epipolarconstraint

FundamentalMatrix

Computation of Fundamental matrix

Calibration matrices:

K1 = K2 =

200 0 3200 200 2400 0 1

Rotation matrices:R1 = R2 = I.

Translation matrices: t1 = 0, t2 = (100, 0, 0)T .

Correspondences: q1 = (520, 440, 1)T ,q2 = (500, 440, 1)T

Compute the fundamental matrix F and show thatqT2 Fq1 = 0.

Find the two epipoles and epipolar lines.

Page 88: Motion Estimation - School of Computingsrikumar/cv_spring2017_files/Lecture5.pdfMotion Estimation Srikumar Ramalingam Review Epipolar constraint Fundamental Matrix Epipolar Plane and

MotionEstimation

SrikumarRamalingam

Review

Epipolarconstraint

FundamentalMatrix

Computation of Fundamental matrix

Calibration matrices:

K1 = K2 =

200 0 3200 200 2400 0 1

Rotation matrices:R1 = R2 = I.

Translation matrices: t1 = 0, t2 = (100, 0, 0)T .

Correspondences: q1 = (520, 440, 1)T ,q2 = (500, 440, 1)T

Compute the fundamental matrix F and show thatqT2 Fq1 = 0.

Find the two epipoles and epipolar lines.

Page 89: Motion Estimation - School of Computingsrikumar/cv_spring2017_files/Lecture5.pdfMotion Estimation Srikumar Ramalingam Review Epipolar constraint Fundamental Matrix Epipolar Plane and

MotionEstimation

SrikumarRamalingam

Review

Epipolarconstraint

FundamentalMatrix

Computation of Fundamental matrix

Calibration matrices:

K1 = K2 =

200 0 3200 200 2400 0 1

Rotation matrices:R1 = R2 = I.

Translation matrices: t1 = 0, t2 = (100, 0, 0)T .

Correspondences: q1 = (520, 440, 1)T ,q2 = (500, 440, 1)T

Compute the fundamental matrix F and show thatqT2 Fq1 = 0.

Find the two epipoles and epipolar lines.

Page 90: Motion Estimation - School of Computingsrikumar/cv_spring2017_files/Lecture5.pdfMotion Estimation Srikumar Ramalingam Review Epipolar constraint Fundamental Matrix Epipolar Plane and

MotionEstimation

SrikumarRamalingam

Review

Epipolarconstraint

FundamentalMatrix

Computation of Fundamental matrix

Calibration matrices:

K1 = K2 =

200 0 3200 200 2400 0 1

Rotation matrices:R1 = R2 = I.

Translation matrices: t1 = 0, t2 = (100, 0, 0)T .

Correspondences: q1 = (520, 440, 1)T ,q2 = (500, 440, 1)T

Compute the fundamental matrix F and show thatqT2 Fq1 = 0.

Find the two epipoles and epipolar lines.

Page 91: Motion Estimation - School of Computingsrikumar/cv_spring2017_files/Lecture5.pdfMotion Estimation Srikumar Ramalingam Review Epipolar constraint Fundamental Matrix Epipolar Plane and

MotionEstimation

SrikumarRamalingam

Review

Epipolarconstraint

FundamentalMatrix

Computation of Fundamental matrix

Calibration matrices:

K1 = K2 =

200 0 3200 200 2400 0 1

Rotation matrices:R1 = R2 = I.

Translation matrices: t1 = 0, t2 = (100, 0, 0)T .

Correspondences: q1 = (520, 440, 1)T ,q2 = (500, 440, 1)T

Compute the fundamental matrix F and show thatqT2 Fq1 = 0.

Find the two epipoles and epipolar lines.

Page 92: Motion Estimation - School of Computingsrikumar/cv_spring2017_files/Lecture5.pdfMotion Estimation Srikumar Ramalingam Review Epipolar constraint Fundamental Matrix Epipolar Plane and

MotionEstimation

SrikumarRamalingam

Review

Epipolarconstraint

FundamentalMatrix

Computation of Fundamental matrix

Calibration matrices:

K1 = K2 =

200 0 3200 200 2400 0 1

Rotation matrices:R1 = R2 = I.

Translation matrices: t1 = 0, t2 = (100, 0, 0)T .

Correspondences: q1 = (520, 440, 1)T ,q2 = (500, 440, 1)T

Compute the fundamental matrix F and show thatqT2 Fq1 = 0.

Find the two epipoles and epipolar lines.

Page 93: Motion Estimation - School of Computingsrikumar/cv_spring2017_files/Lecture5.pdfMotion Estimation Srikumar Ramalingam Review Epipolar constraint Fundamental Matrix Epipolar Plane and

MotionEstimation

SrikumarRamalingam

Review

Epipolarconstraint

FundamentalMatrix

Computation of the fundamental matrix

Epipolar constraint:qT2 Fq1 = 0Using n point correspondences we can rewrite the aboveequation of the following form:

Af = 0

Here A is a n× 9 matrix consisting of only the coordinatesof the point correspondences that are known. The 9× 1vector f consists of 9 unknowns from the 3× 3fundamental matrix F.This is a homogenous linear system that can be solvedeasily.

Page 94: Motion Estimation - School of Computingsrikumar/cv_spring2017_files/Lecture5.pdfMotion Estimation Srikumar Ramalingam Review Epipolar constraint Fundamental Matrix Epipolar Plane and

MotionEstimation

SrikumarRamalingam

Review

Epipolarconstraint

FundamentalMatrix

Computation of the fundamental matrix

Epipolar constraint:qT2 Fq1 = 0

Using n point correspondences we can rewrite the aboveequation of the following form:

Af = 0

Here A is a n× 9 matrix consisting of only the coordinatesof the point correspondences that are known. The 9× 1vector f consists of 9 unknowns from the 3× 3fundamental matrix F.This is a homogenous linear system that can be solvedeasily.

Page 95: Motion Estimation - School of Computingsrikumar/cv_spring2017_files/Lecture5.pdfMotion Estimation Srikumar Ramalingam Review Epipolar constraint Fundamental Matrix Epipolar Plane and

MotionEstimation

SrikumarRamalingam

Review

Epipolarconstraint

FundamentalMatrix

Computation of the fundamental matrix

Epipolar constraint:qT2 Fq1 = 0Using n point correspondences we can rewrite the aboveequation of the following form:

Af = 0

Here A is a n× 9 matrix consisting of only the coordinatesof the point correspondences that are known. The 9× 1vector f consists of 9 unknowns from the 3× 3fundamental matrix F.

This is a homogenous linear system that can be solvedeasily.

Page 96: Motion Estimation - School of Computingsrikumar/cv_spring2017_files/Lecture5.pdfMotion Estimation Srikumar Ramalingam Review Epipolar constraint Fundamental Matrix Epipolar Plane and

MotionEstimation

SrikumarRamalingam

Review

Epipolarconstraint

FundamentalMatrix

Computation of the fundamental matrix

Epipolar constraint:qT2 Fq1 = 0Using n point correspondences we can rewrite the aboveequation of the following form:

Af = 0

Here A is a n× 9 matrix consisting of only the coordinatesof the point correspondences that are known. The 9× 1vector f consists of 9 unknowns from the 3× 3fundamental matrix F.This is a homogenous linear system that can be solvedeasily.

Page 97: Motion Estimation - School of Computingsrikumar/cv_spring2017_files/Lecture5.pdfMotion Estimation Srikumar Ramalingam Review Epipolar constraint Fundamental Matrix Epipolar Plane and

MotionEstimation

SrikumarRamalingam

Review

Epipolarconstraint

FundamentalMatrix

Computation of the fundamental matrix

Using n point correspondences, we can have the followingequation:

Af = 0

Show the n × 9 matrix using the point correspondences{(u1i , v1i ), (u2i , v2i )}, i = {1 · · · n}.

Page 98: Motion Estimation - School of Computingsrikumar/cv_spring2017_files/Lecture5.pdfMotion Estimation Srikumar Ramalingam Review Epipolar constraint Fundamental Matrix Epipolar Plane and

MotionEstimation

SrikumarRamalingam

Review

Epipolarconstraint

FundamentalMatrix

Computation of the fundamental matrix

Using n point correspondences, we can have the followingequation:

Af = 0

Show the n × 9 matrix using the point correspondences{(u1i , v1i ), (u2i , v2i )}, i = {1 · · · n}.

Page 99: Motion Estimation - School of Computingsrikumar/cv_spring2017_files/Lecture5.pdfMotion Estimation Srikumar Ramalingam Review Epipolar constraint Fundamental Matrix Epipolar Plane and

MotionEstimation

SrikumarRamalingam

Review

Epipolarconstraint

FundamentalMatrix

Computation of the fundamental matrix

Using n point correspondences, we can have the followingequation:

Af = 0

Show the n × 9 matrix using the point correspondences{(u1i , v1i ), (u2i , v2i )}, i = {1 · · · n}.

Page 100: Motion Estimation - School of Computingsrikumar/cv_spring2017_files/Lecture5.pdfMotion Estimation Srikumar Ramalingam Review Epipolar constraint Fundamental Matrix Epipolar Plane and

MotionEstimation

SrikumarRamalingam

Review

Epipolarconstraint

FundamentalMatrix

Computation of the fundamental matrix

Source: Peter Sturm

Page 101: Motion Estimation - School of Computingsrikumar/cv_spring2017_files/Lecture5.pdfMotion Estimation Srikumar Ramalingam Review Epipolar constraint Fundamental Matrix Epipolar Plane and

MotionEstimation

SrikumarRamalingam

Review

Epipolarconstraint

FundamentalMatrix

To find the solution of the equation Af = 0, we firstcompute SVD of A, i.e.,[U, S,V] = SVD(A) and then thesolution of f is given by the last column of V.

The rank of A should be 8 if we use 8 pointcorrespondences.

Page 102: Motion Estimation - School of Computingsrikumar/cv_spring2017_files/Lecture5.pdfMotion Estimation Srikumar Ramalingam Review Epipolar constraint Fundamental Matrix Epipolar Plane and

MotionEstimation

SrikumarRamalingam

Review

Epipolarconstraint

FundamentalMatrix

Acknowledgments

Some presentation slides are adapted from the followingmaterials:

Peter Sturm, Some lecture notes on geometric computervision (available online).