1 of 36

Introduction to computer vision II

Jean Ponce

jean.ponce@ens.fr

Zuhaib Akhtar za2023@nyu.edu

Ayush Jain aj3152@nyu.edu

Slides will be available after classes

2 of 36

Camera geometry�and calibration

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

3 of 36

Quantitative Measurements and Calibration

Euclidean Geometry

4 of 36

Pinhole Perspective Equation

 

 

 

 

 

5 of 36

Pinhole Perspective Equation

 

 

 

 

 

[

]

6 of 36

Homogeneous coordinates

Conversion

Converting to homogeneous coordinates

homogeneous image

coordinates

homogeneous scene

coordinates

Converting from homogeneous coordinates

7 of 36

Homogeneous coordinates

Invariant to scaling

A point in Cartesian coordinates is a ray in homogeneous ones

Homogeneous Coordinates

Cartesian Coordinates

8 of 36

Slide Credit: Savarese

Projection matrix

p: Image Coordinates: (u,v,1)

M: 3x4 projection matrix

K: Intrinsic Matrix (3x3)

R: Rotation (3x3)

t: Translation (3x1)

P: World Coordinates: (x,y,z,1)

Ow

iw

kw

jw

R,t

p

 

f

 

9 of 36

K

Slide Credit: Savarese

Projection matrix

Intrinsic Assumptions

  • Unit aspect ratio
  • Image center at (0,0)
  • No skew

Extrinsic Assumptions

  • No rotation
  • Camera at (0,0,0)

P

p

 

 

10 of 36

K

Slide Credit: Savarese

Projection matrix: accounting for pixel size

Intrinsic Assumptions

  • Unit aspect ratio
  • Image center at (0,0)
  • No skew

Extrinsic Assumptions

  • No rotation
  • Camera at (0,0,0)

P

p

 

 

 

 

11 of 36

Remove assumption: known optical center

Intrinsic Assumptions

  • Unit aspect ratio
  • No skew

Extrinsic Assumptions

  • No rotation
  • Camera at (0,0,0)

 

 

 

12 of 36

Remove assumption: square pixels

Intrinsic Assumptions

  • No skew

Extrinsic Assumptions

  • No rotation
  • Camera at (0,0,0)

 

13 of 36

Remove assumption: non-skewed pixels

Intrinsic Assumptions

Extrinsic Assumptions

  • No rotation
  • Camera at (0,0,0)

 

14 of 36

Oriented and Translated Camera

Ow

iw

kw

jw

t

R

P

p

15 of 36

Allow camera translation

Intrinsic Assumptions

Extrinsic Assumptions

  • No rotation

 

 

16 of 36

3D Rotation of Points

Rotation around the coordinate axes, counter-clockwise:

p

p

γ

y

z

Slide Credit: Saverese

17 of 36

Allow camera rotation

 

18 of 36

Degrees of freedom

5

6

 

19 of 36

 

 

 

 

normalized coordinates

20 of 36

Explicit form of the projection matrix

21 of 36

Explicit Form of the Projection Matrix

Note:

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

22 of 36

Theorem (Faugeras, 1993)

23 of 36

Explicit Form of the Projection Matrix

24 of 36

Linear Camera Calibration

25 of 36

Linear Systems

A

x

b

=

Square system:

  • unique solution

  • Gaussian elimination

26 of 36

Linear Systems

A

A

x

x

b

b

=

=

Square system:

  • unique solution

  • Gaussian elimination

Rectangular system ??

  • underconstrained:

infinity of solutions

27 of 36

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

28 of 36

How do you solve overconstrained linear equations ??

29 of 36

Homogeneous Linear Systems

A

x

0

=

Square system:

  • unique solution: 0

  • unless Det(A)=0

30 of 36

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

31 of 36

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|| =1

2

2

32 of 36

How do you solve overconstrained homogeneous

linear equations ??

The solution is e .

1

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

= λ1μ12+ … +λqμq21

> λ112+ … +μq2-1)=0

33 of 36

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

34 of 36

Note:

  • Matrix of second moments of inertia

  • Axis of least inertia

35 of 36

Linear Camera Calibration

Minimize ||Pm|| under the constraint ||m|| =1

2

2

36 of 36

Once M is known, you still got to recover the intrinsic and

extrinsic parameters !!!

This is a decomposition problem, not an estimation

problem.

  • Intrinsic parameters

  • Extrinsic parameters

ρ