18
Introduction à la vision artificielle III an Ponce ail: [email protected] tp://www.di.ens.fr/~ponce/introvis/lect3.pp tp://www.di.ens.fr/~ ponce/introvis/lect3.pd tp://www.di.ens.fr/~ponce/introvis/sbook.pd

Introduction à la vision artificielle III Jean Ponce Email: [email protected]@di.ens.fr ponce/introvis/lect3.pptx ponce/introvis/lect3.pdf

Embed Size (px)

Citation preview

Page 1: Introduction à la vision artificielle III Jean Ponce Email: ponce@di.ens.frponce@di.ens.fr ponce/introvis/lect3.pptx ponce/introvis/lect3.pdf

Introduction à la vision artificielle III

Jean PonceEmail: [email protected]

http://www.di.ens.fr/~ponce/introvis/lect3.pptxhttp://www.di.ens.fr/~ponce/introvis/lect3.pdfhttp://www.di.ens.fr/~ponce/introvis/sbook.pdf

Page 2: Introduction à la vision artificielle III Jean Ponce Email: ponce@di.ens.frponce@di.ens.fr ponce/introvis/lect3.pptx ponce/introvis/lect3.pdf

Camera geometryand calibration II

• Intrinsic and extrinsic parameters• Strong (Euclidean) calibration• Degenerate configurations• What about affine cameras?

Page 3: Introduction à la vision artificielle III Jean Ponce Email: ponce@di.ens.frponce@di.ens.fr ponce/introvis/lect3.pptx ponce/introvis/lect3.pdf

Explicit Form of the Projection Matrix

Note:

M is only defined up to scale in this setting!!

Page 4: Introduction à la vision artificielle III Jean Ponce Email: ponce@di.ens.frponce@di.ens.fr ponce/introvis/lect3.pptx ponce/introvis/lect3.pdf

Theorem (Faugeras, 1993)

Page 5: Introduction à la vision artificielle III Jean Ponce Email: ponce@di.ens.frponce@di.ens.fr ponce/introvis/lect3.pptx ponce/introvis/lect3.pdf

Observations:

is the equation of a plane of normal direction a1

• From the projection equation, it is also the plane defined by: u = 0

• Similarly: • (a2,b2) describes the plane defined by: v = 0• (a3,b3) describes the plane defined by:

That is the plane passing through the pinhole (z = 0)

Geometric Interpretation

33

11

3

1

b

Z

Y

X

a

b

Z

Y

X

a

Pm

Pmu

T

T

T

T

011

b

Z

Y

X

aT

vu

Projection equation:

Page 6: Introduction à la vision artificielle III Jean Ponce Email: ponce@di.ens.frponce@di.ens.fr ponce/introvis/lect3.pptx ponce/introvis/lect3.pdf

u

v

a3

C

Geometric Interpretation: The rows of the projection matrix describe the three planes defined by the image coordinate system

a1

a2

Page 7: Introduction à la vision artificielle III Jean Ponce Email: ponce@di.ens.frponce@di.ens.fr ponce/introvis/lect3.pptx ponce/introvis/lect3.pdf

p P

Other useful geometric properties

Q: Given an image point p, what is the direction of the corresponding ray in space?

A:

Q: Can we compute the position of the camera center W?

A:

pAw 1

bA 1

Page 8: Introduction à la vision artificielle III Jean Ponce Email: ponce@di.ens.frponce@di.ens.fr ponce/introvis/lect3.pptx ponce/introvis/lect3.pdf

Linear Camera Calibration

Page 9: Introduction à la vision artificielle III Jean Ponce Email: ponce@di.ens.frponce@di.ens.fr ponce/introvis/lect3.pptx ponce/introvis/lect3.pdf

Linear Systems

A

A

x

x b

b=

=

Square system:

• unique solution

• Gaussian elimination

Rectangular system ??

• underconstrained: infinity of solutions

Minimize |Ax-b|2

• overconstrained: no solution

Page 10: Introduction à la vision artificielle III Jean Ponce Email: ponce@di.ens.frponce@di.ens.fr ponce/introvis/lect3.pptx ponce/introvis/lect3.pdf

How do you solve overconstrained linear equations ??

Page 11: Introduction à la vision artificielle III Jean Ponce Email: ponce@di.ens.frponce@di.ens.fr ponce/introvis/lect3.pptx ponce/introvis/lect3.pdf

Homogeneous Linear Systems

A

A

x

x 0

0=

=

Square system:

• unique solution: 0

• unless Det(A)=0

Rectangular system ??

• 0 is always a solution

Minimize |Ax| under the constraint |x| =12

2

Page 12: Introduction à la vision artificielle III Jean Ponce Email: ponce@di.ens.frponce@di.ens.fr ponce/introvis/lect3.pptx ponce/introvis/lect3.pdf

How do you solve overconstrained homogeneous linear equations ??

The solution is e .1

E(x)-E(e1) = xT(UTU)x-e1T(UTU)e1

= 112+ … +qq

2-1

> 1(12+ … +q

2-1)=0

Page 13: Introduction à la vision artificielle III Jean Ponce Email: ponce@di.ens.frponce@di.ens.fr ponce/introvis/lect3.pptx ponce/introvis/lect3.pdf

Example: Line Fitting

Problem: minimize

with respect to (a,b,d).

• Minimize E with respect to d:

• Minimize E with respect to a,b:

where

• Done !!

n

Page 14: Introduction à la vision artificielle III Jean Ponce Email: ponce@di.ens.frponce@di.ens.fr ponce/introvis/lect3.pptx ponce/introvis/lect3.pdf

Note:

• Matrix of second moments of inertia

• Axis of least inertia

Page 15: Introduction à la vision artificielle III Jean Ponce Email: ponce@di.ens.frponce@di.ens.fr ponce/introvis/lect3.pptx ponce/introvis/lect3.pdf

Linear Camera Calibration

Page 16: Introduction à la vision artificielle III Jean Ponce Email: ponce@di.ens.frponce@di.ens.fr ponce/introvis/lect3.pptx ponce/introvis/lect3.pdf

Once M is known, you still got to recover the intrinsic andextrinsic parameters !!!

This is a decomposition problem, not an estimationproblem.

• Intrinsic parameters

• Extrinsic parameters

r

Page 17: Introduction à la vision artificielle III Jean Ponce Email: ponce@di.ens.frponce@di.ens.fr ponce/introvis/lect3.pptx ponce/introvis/lect3.pdf

Degenerate Point Configurations

Are there other solutions besides M ??

• Coplanar points: (λ, μ, ν ) = (π,0,0) or (0,π,0) or (0,0,π )

• Points lying on the intersection curve of two quadricsurfaces = straight line + twisted cubic

Does not happen for 6 or more random points!

Page 18: Introduction à la vision artificielle III Jean Ponce Email: ponce@di.ens.frponce@di.ens.fr ponce/introvis/lect3.pptx ponce/introvis/lect3.pdf

Analytical Photogrammetry

Non-Linear Least-Squares Methods

• Newton• Gauss-Newton• Levenberg-Marquardt

Iterative, quadratically convergent in favorable situations