Docsity

Camera Calibration: Parameters, Problems and Examples | EECS 442, Study notes of Electrical and Electronics Engineering

Partial preview of the text

Download Camera Calibration: Parameters, Problems and Examples | EECS 442 and more Study notes Electrical and Electronics Engineering in PDF only on Docsity!

EECS 442 – Computer vision Camera Calibration

  • Review camera parameters • Camera calibration problem • Example

Reading:

[FP] Chapter 3 [HZ] Chapter 7

Some slides in this lecture are courtesy to Profs. J. Ponce &

F-F Li

Pinhole perspective projection

Projective camera

f

O

c

f = focal length

f

O

c

Units:

k,l [pixel/m]

f

[m]

[pixel]

,

α

β

Non-square pixels

Projective camera

f = focal length u

o

, v

o

= offset

→

non-square pixels

,

α

β

x

y

x

c

y

c

C=[u

o

, v

o

]

θ

f

O

c

Projective camera

→

non-square pixels

,

f = focal length u

o

, v

o

= offset

α

β

θ

= skewness

f

O

c

Projective camera

P

c

O

w

i

w

k

w

j

w

R,T

[

]

w

c

P

T

R

P

P’

f = focal length u

o

, v

o

= offset

→

non-square pixels

,

α

β

θ

= skewness

R,T = rotation, translation

f = focal length u

o

, v

o

= offset

→

non-square pixels

,

α

β

f

O

c

Projective camera

P

O

w

i

w

k

w

j

w

R,T

w

P

M

P

=

′

[

]

w P T R K =

Internal parameters

External parameters

θ

= skewness

R,T = rotation, translation

P’

Goal of calibration

w

P

M

P

=

′

[

]

w P T R K =

Estimate intrinsic and extrinsic parametersfrom 1 or multiple images

Note: To simplify notation let P = P

w

⎤ ⎥ ⎥ ⎥ ⎦

⎡ ⎢ ⎢ ⎢ ⎣

−

=

1

0

0

v

0

u

cot

K

o

o

sin

θ

β

θ

α

α

⎤ ⎥ ⎥ ⎥⎦

⎡ ⎢ ⎢ ⎢⎣

=

T

3

T

2

T

1

R

r r r

⎤ ⎥ ⎥ ⎥⎦

⎡ ⎢ ⎢ ⎢⎣

=

y z x

t t t

T

Calibration Problem

•P

1

… P

n

with known positions in [O

w

,i

w

,j

w

,k

w

]

•p

1

, … p

n

known positions in the image

Goal: compute

intrinsic and extrinsic parameters

j

Calibration rig

Calibration Problem

image

j

Calibration rig

In practice: user may need to look at the image and select the n>=6 correspondences

Calibration Problem

j

i

i

P

M

P

→

⎤ ⎥ ⎦

⎡ ⎢ ⎣

=

→

i i

i

v u

p

1 2 3

M

m m

m

i

3

i

2

i

3

i

1

P

P

P

P

m

m

m

m

in pixels

Calibration Problem

0

P

v

u

i

3

i

2

3

i

1

=

⎞ ⎟⎟ ⎠

⎛ ⎜⎜ ⎝

−

−

m

m

m

m

…

0

P

v

u

n

3

n

2

3

n

1

=

⎞ ⎟⎟ ⎠

⎛ ⎜⎜ ⎝

−

−

m

m

m

m

…

0

P

v

u

1

3

1

2

3

1

1

=

⎞ ⎟⎟ ⎠

⎛ ⎜⎜ ⎝

−

−

m

m

m

m

Block Matrix Multiplication

⎤ ⎥ ⎦

⎡ ⎢ ⎣

=

⎤ ⎥ ⎦

⎡ ⎢ ⎣

=

22

21

12

11

22

21

12

11

B

B

B

B

B

A

A

A

A

A

What is

AB?

22

22

12

21

21

22

11

21

22

12

12

11

21

12

11

11

B A B A B A B A

B A B A B A B A

AB

Homogeneous M x N Linear Systems

A A

x x

0 0

= =

Square system (M=N):

  • if Det(

A)

≠

0,

unique solution: 0

Rectangular system

0 is always a solution

non-zero solution if det(A)

≠

0

Minimize |Ax|

2

under the constraint |x|

2

=

M x N

M=number of equations N=number of unknown

noisy measurements

How do we solve this homogenous linear system?

Calibration Problem