structure computation scene planes and homographies

30
Structure Computation Scene Planes and Homographies Slides modified from Marc Pollefeys’ slides

Upload: rock

Post on 20-Jan-2016

20 views

Category:

Documents


0 download

DESCRIPTION

Structure Computation Scene Planes and Homographies. Slides modified from Marc Pollefeys’ slides. Problem Statement. Given P, P’ or F with great accuracy Given x, x’ Compute X. Invariant to Projective transformations. Point reconstruction. linear triangulation. homogeneous. invariance?. - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: Structure Computation Scene Planes and Homographies

Structure ComputationScene Planes and

Homographies

Slides modified from Marc Pollefeys’ slides

Page 2: Structure Computation Scene Planes and Homographies

Problem Statement

• Given P, P’ or F with great accuracy

• Given x, x’• Compute X

)HP' ,PH , x'x,(H)P' P, , x'x,(

)P' P, , x'x,(1-1-1-

X

Invariant to Projective transformations

Page 3: Structure Computation Scene Planes and Homographies

Point reconstruction

PXx XP'x'

Page 4: Structure Computation Scene Planes and Homographies

linear triangulation

XP'x' PXx

0XP'x

0XpXp0XpXp0XpXp

1T2T

2T3T

1T3T

yxyx

2T3T

1T3T

2T3T

1T3T

p'p''p'p''pppp

A

yxyx

0AX

homogeneous

1X

)1,,,( ZYX

inhomogeneous

invariance?

e)(HX)(AH -1

algebraic error yes, constraint no (except for affine)

Page 5: Structure Computation Scene Planes and Homographies

geometric error

0x̂F'x̂ subject to )'x̂,(x')x̂(x, T22 dd

X̂P''x̂ and X̂Px̂ subject toly equivalentor

possibility to compute using LM (for 2 or more points)

or directly (for 2 points)

Page 6: Structure Computation Scene Planes and Homographies

Geometric error

Reconstruct matches in projective frame by minimizing the reprojection error

(see Hartley&Sturm,CVIU´97)Non-iterative optimal solution

Page 7: Structure Computation Scene Planes and Homographies

Optimal 3D point in epipolar plane

Given an epipolar plane, find best 3D point for (x1,x2)

x1

x2

l1 l2

l1x1

x2l2

x1´

x2´

Select closest points (x1´,x2´) on epipolar lines

Obtain 3D point through exact triangulationGuarantees minimal reprojection error (given this epipolar plane)

Page 8: Structure Computation Scene Planes and Homographies

Optimal epipolar plane

• Reconstruct matches in projective frame by minimizing the reprojection error

• Non-iterative methodDetermine the epipolar plane for reconstruction

Reconstruct optimal point from selected epipolar plane

222

211 XP,xXP,x dd

(Hartley and Sturm, CVIU´97)

222

211 αl,xαl,x DD

(polynomial of degree 6check all minima, incl ∞)

m1

m2

l1 l2

3DOF

1DOF

Page 9: Structure Computation Scene Planes and Homographies

Reconstruction uncertainty

consider angle between rays

Page 10: Structure Computation Scene Planes and Homographies

Line reconstruction

P'l'Pl

T

T

L

doesn‘t work for epipolar plane

Page 11: Structure Computation Scene Planes and Homographies

Scenes and Homographies

Page 12: Structure Computation Scene Planes and Homographies

Homography given plane

a]|[AP' 0]|[IP

0XπT TT ,1vπ

Hxx' TavAH

0]X|[IPXx

TT ρ,xX

point on plane

TTT x,-vxproject in second view

xavAXP'x' T

Page 13: Structure Computation Scene Planes and Homographies

Calibrated stereo rig

0]|K[IPE t]|[RK'P'E

-1T K/tnRK'H d

dn/v

TT ) ,n(π d

Page 14: Structure Computation Scene Planes and Homographies

homographies and epipolar geometry

points on plane also have to satisfy epipolar geometry!

x 0,FxHxFxHx TTT

HTF has to be skew-symmetric

0HFFH TT x ,x'e'Fx

x'x 0,'x'eHx TT

H'eF

l’

Page 15: Structure Computation Scene Planes and Homographies

Homography also maps epipole

Hee'

Page 16: Structure Computation Scene Planes and Homographies

Homography also maps epipolar lines

eT

e l'Hl

Page 17: Structure Computation Scene Planes and Homographies

Compatibility constraint

Hxx'Fxl'e

Page 18: Structure Computation Scene Planes and Homographies

plane homography given F and 3 points correspondences

Method 1: reconstruct explicitly, compute plane through 3 points derive homography

Method 2: use epipoles as 4th correspondence to compute homography

Page 19: Structure Computation Scene Planes and Homographies

degenerate geometry for an implicit computation of the homography

Page 20: Structure Computation Scene Planes and Homographies

Estimastion from 3 noisy points (+F)

Consistency constraint: points have to be in exact epipolar correspodence

Determine MLE points given F and xi↔xi’

Use implicit 3D approach (no derivation here)

T1bMe'AH

2T e'x'/e'x'Ax'x iiiiib

Fe'A

M is a 3x3 matrix with rows xiT

Page 21: Structure Computation Scene Planes and Homographies

plane homography given F, a point and a line

Tlμe'Fl'H

xle'x'

l'Fxx'e'x'μ

T2

T

Page 22: Structure Computation Scene Planes and Homographies

application: matching lines(Schmid and Zisserman, CVPR’97)

Page 23: Structure Computation Scene Planes and Homographies

epipolar geometry induces point homography on lines

x]'l[)xle']'l[(x)(x' T FμFH

Page 24: Structure Computation Scene Planes and Homographies

Degenerate homographies

Fxl''x

Page 25: Structure Computation Scene Planes and Homographies

plane induced parallax

Page 26: Structure Computation Scene Planes and Homographies

Hx'xl

Page 27: Structure Computation Scene Planes and Homographies

6-point algorithm

6655 Hx'xHx'xe'

x1,x2,x3,x4 in plane, x5,x6 out of plane

Compute H from x1,x2,x3,x4

He'F

Page 28: Structure Computation Scene Planes and Homographies

Projective depth

ρe'Hxx'

TT ρ,xX

=0 on planesign of determines on which side of plane

Page 29: Structure Computation Scene Planes and Homographies

Binary space partition

Page 30: Structure Computation Scene Planes and Homographies

Next class: The Trifocal Tensor