Reconstruction 16-385 Computer Vision (Kris Kitani) Carnegie Mellon - - PowerPoint PPT Presentation

reconstruction
SMART_READER_LITE
LIVE PREVIEW

Reconstruction 16-385 Computer Vision (Kris Kitani) Carnegie Mellon - - PowerPoint PPT Presentation

Reconstruction 16-385 Computer Vision (Kris Kitani) Carnegie Mellon University Structure Motion Measurements (scene geometry) (camera geometry) 3D to 2D estimate Pose Estimation known correspondences 2D to 2D estimate Triangulation


slide-1
SLIDE 1

Reconstruction

16-385 Computer Vision (Kris Kitani)

Carnegie Mellon University

slide-2
SLIDE 2

Structure

(scene geometry)

Motion

(camera geometry)

Measurements Pose Estimation

known

estimate

3D to 2D correspondences

Triangulation

estimate

known 2D to 2D coorespondences

Reconstruction

estimate estimate

2D to 2D coorespondences

slide-3
SLIDE 3

Given a set of matched points

{xi, x0

i}

Estimate the camera matrices Estimate the 3D point

P, P0

X

Reconstruction

(2 view structure from motion)

slide-4
SLIDE 4

Given a set of matched points

{xi, x0

i}

Estimate the camera matrices Estimate the 3D point

P, P0

X

Reconstruction

(2 view structure from motion)

‘structure’ ‘motion’

(of the cameras)

slide-5
SLIDE 5

Procedure for Reconstruction

  • 1. Compute the Fundamental Matrix F from points

correspondences
 8-point algorithm

x0>

m Fxm = 0

slide-6
SLIDE 6

Procedure for Reconstruction

  • 1. Compute the Fundamental Matrix F from points

correspondences
 8-point algorithm

  • 2. Compute the camera matrices P from the Fundamental

matrix
 P = [ I | 0 ] and P’ = [ [e’x]F | e’ ]

slide-7
SLIDE 7

Camera matrices corresponding to the fundamental matrix F may be chosen as

P = [I|0]

P0 = [[e⇥]F|e0]

(See Hartley and Zisserman C.9 for proof)

slide-8
SLIDE 8

Decomposing F into R and T

If we have calibrated cameras we have and K K0

E = K0>FK

Essential matrix:

slide-9
SLIDE 9

Decomposing F into R and T

If we have calibrated cameras we have and K K0

E = K0>FK

Essential matrix:

E = UΣV>

SVD: Let W =   −1 1 1  

slide-10
SLIDE 10

Decomposing F into R and T

If we have calibrated cameras we have and K K0

E = K0>FK

Essential matrix:

E = UΣV>

SVD: Let W =   −1 1 1   We get FOUR solutions: R1 = UWV> T1 = U3

E = [R|T]

R2 = UW>V> T2 = −U3

two possible rotations two possible translations

slide-11
SLIDE 11

We get FOUR solutions: R1 = UWV> T1 = U3 R2 = UW>V> T2 = −U3 R1 = UWV> R2 = UW>V> T1 = U3 T2 = −U3

Compute determinant of R, valid solution must be equal to 1

(note: det(R) = -1 means rotation and reflection)

Compute 3D point using triangulation, valid solution has positive Z value

(Note: negative Z means point is behind the camera )

Which one do we choose?

slide-12
SLIDE 12

camera center image plane

  • ptical axis

Camera Icon

Find the configuration where the points is in front of both cameras

Let’s visualize the four configurations…

slide-13
SLIDE 13

Find the configuration where the points is in front of both cameras

slide-14
SLIDE 14

Find the configuration where the points is in front of both cameras

slide-15
SLIDE 15
  • 1. Normalize the image points x,x’ using K,K’
  • 2. Use the 8-point algorithm to find an

approximation of E (SVD!)

  • 3. Project E to essential space (SVD!!)


(set smallest SV to zero)

  • 4. Recover possible solutions for R and T

(SVD!!!)

  • 5. Use point correspondence to find the

correct R,T pair (don’t use SVD…) From points correspondences to camera displacement

slide-16
SLIDE 16

Procedure for Reconstruction

  • 1. Compute the Fundamental Matrix F from points

correspondences
 8-point algorithm

  • 2. Compute the camera matrices P from the Fundamental

matrix
 P = [ I | 0 ] and P’ = [ [e’x]F | e’ ]

  • 3. For each point correspondence, compute the point X

in 3D space (triangularization)
 DLT with x = P X and x’ = P’ X

slide-17
SLIDE 17

Projective Ambiguity

  • Reconstruction is ambiguous by an arbitrary 3D

projective transformation without prior knowledge

  • f camera parameters
slide-18
SLIDE 18

Similarity Projective

Calibrated cameras (similarity projection ambiguity) Uncalibrated cameras (projective projection ambiguity)

slide-19
SLIDE 19

Structure

(scene geometry)

Motion

(camera geometry)

Measurements Pose Estimation

known

estimate

3D to 2D correspondences

Triangulation

estimate

known 2D to 2D coorespondences

Reconstruction

estimate estimate

2D to 2D coorespondences