Docsity

3D Reconstruction from Multiple Views: Algorithms and Techniques - Prof. Ramalingam Chella, Study notes of Computer Science

Partial preview of the text

Download 3D Reconstruction from Multiple Views: Algorithms and Techniques - Prof. Ramalingam Chella and more Study notes Computer Science in PDF only on Docsity!

Reconstruction from Multiple Views

Daniel DeMenthon

3D Reconstruction from Image Pairs

  • Find interest points
  • Match interest points
  • Compute fundamental matrix F
  • Compute camera matrices P and P’ from F
  • For each matching image points x and x’ , compute point X in scene

Computing Scene Point from Two

Matching Image Points (Details)

x = P X ⇔ x × (P X) = 0

P X

P X

P X

X

P

P

P

P X

T 3

2 T

1 T

T 3

2 T

1 T

y

x

x

P X P X

P X P X

P X P X

T 1 T 2

T 1 T 3

T 2 T 3

x y

x

y

Linear combination of other 2 equations

Computing Scene Point from Two

Matching Image Points (End)

  • Homogeneous system A X = 0 is
  • X is the last column of V in the SVD of A , A = U D VT

X

P -P'

P -P'

P - P

P - P

T 2 T 3

T 1 T 3

T 2 T 3

T 1

T 3

y

x

y

x

Projective Reconstruction Theorem (Details)

  • There exists a projective transformation H such that X2i = H X1i, P 2 = P 1 H-1 , P’ 2 = P’ 1 H-

C 1 C’ 1

X 1 e e’

x (^) x’ Image

C (^2) C’ 2

X 2

e e’

x (^) x’

Same Image P 2 X 2 = P 1 H-1 X 2 = P 1 H-1 H x 1 = P 1 x 1 = x

Projective Reconstruction Theorem

(Consequences)

  • We can compute a projective reconstruction of a scene from 2 views based on image correspondences alone
  • We don’t have to know anything about the calibration or poses of the cameras
  • The true reconstruction is within a projective transformation H of the projective reconstruction: X2i = H X1i

Rectifying Projective

Reconstruction to Metric

  • Compute homography H such that XEi = H Xi for five or more ground control points XEi with known Euclidean positions ß H is a 4 x 4 homogeneous matrix
  • Then the metric reconstruction is

Mi i

**- M

PM** = P H , P' = P' H , X = H X

Results using 5 points

13

From Projective to Affine Reconstruction

  • Find 3 intersections of sets of lines in the scene that are supposed to be parallel ß These 3 points define a plane π
  • Find a transformation H that maps the plane π to the plane at infinity (0, 0, 0, 1)T: ß This plane contains all points at infinity: (0, 0, 0, 1) (x, y, z, 0) T^ = 0 ß H-T^ π = (0, 0, 0, 1) T^ , or HT (0, 0, 0, 1) T^ = π



  ⇒ =  

p^ T H I|^0 4

3

2

1

4

3

2

1

1

0

0

0

0 0 0

0 0 1

0 1 0

1 0 0

π

π

π

π

π

π

π

π Apply H to scene points, and to cameras P and P ’

Example of Affine Reconstruction

Direct Metric Reconstruction

using Camera Calibration

  • Find calibration matrices K and K’ using 3 vanishing points for orthogonal scene lines ß See homework
  • Normalize image points
  • Compute fundamental matrix using matched normalized points: we get the essential matrix E
  • Select P=[I | 0] and P’=[R |T]. Then
  • Find T and R using SVD of E
  • From P and P’ , reconstruct scene points

E = [T] × R

Reconstruction from N Views

  • Projective or affine reconstruction from a possibly large set of images
  • Problem ß Set of 3D points Xj ß Set of cameras Pi ß For each camera Pi^ , set of image points xji ß Find 3D points Xj and cameras Pi^ such that Pi^ Xj = xji

Initial Solutions:

Affine Factorization Algorithm

  • Tomasi and Kanade (1992)
  • Affine reconstruction
  • Affine camera
  • Inhomogeneous coordinates x = M X + T

M + T

 

 

  = 

  ⇒  

 

 

 

 

Z

Y

X y

x Z

Y

X m m m T

m m m T

w

v

u

(^00011)

21 22 23 2

11 12 13 1

Affine Factorization

  • Minimize
  • Choose centroid of points as origin of scene coordinate system
  • Choose pixel (0, 0) at image of centroid
  • Then the problem becomes: Minimize ß Note: This requires the same points to be visible in all views

∑ )^ )^2

i,j j

(xij - Mi X

∑ + )^ )^2

i, j

(xij - (Mi Xj Ti