• 검색 결과가 없습니다.

Camera Models

N/A
N/A
Protected

Academic year: 2024

Share "Camera Models"

Copied!
17
0
0

로드 중.... (전체 텍스트 보기)

전체 글

(1)

Camera Models 1

2008-1

Multi View Geometry (Spring '08)

Prof. Kyoung Mu Lee

SoEECS, Seoul National University

Camera Models

Camera Models 2

Camera Models – Finite Cameras

• Pinhole camera model:

In homogeneous coordinates

Z fY Z y Y f

y= =

⎟⎟

⎜⎜

=

0 1 1

0 0

Z Y X f

f

Z fY fX

⎟⎟

⎜⎜

=

0 1 1

0 1

0 1

1 Z

Y X f

f

Z fY fX

PX

x= P=diag(f,f,1)

[ ]

I|0
(2)

Multi View Geometry (Spring '08) K. M. Lee, EECS, SNU

• Principal point offset model:

9Set the coordinates of the principal point (image center) be

9Then the mapping becomes

9Or in homogeneous representation

T y x p p , ) (

calibration matrix

T y x

T fX Z p fY Z p

Z Y

X, , ) ( / , / )

( a + +

⎟⎟

⎟⎟

⎜⎜

⎜⎜

⎥⎥

⎢⎢

⎟=

⎟⎟

⎜⎜

⎛ + +

⎟⎟

⎟⎟

⎜⎜

⎜⎜

0 1 1

0 0

1

Z Y X p f

p f

Z Zp fY

Zp fX Z

Y X

y x x

x

a

[ ]

I|0Xcam

K x=

=

1

y x

p f

p f K

Camera Models 4

Finite cameras

• Camera Rotation and Translation:

center camera the

of s coordinate ous

inhomogene

~ : :rotation matrix ofcameracoordiantes s coordinate camera

ous inhomogene

~:inhomogene: ous worldcoordinates

~ ~ ~)

~

cam cam

C R X X

C X R(

X =

world coordinates camera coordinates

1 X 0

RC R

1 1 0

C~ R

Xcam R ⎥

⎢ ⎤

⎡ −

=

⎟⎟

⎟⎟

⎜⎜

⎜⎜

⎥⎦

⎢ ⎤

⎡ −

= Z

Y X

[ ]

(3)

Camera Models 5

Multi View Geometry (Spring '08) K. M. Lee, EECS, SNU

[ ]

I| C~

KR

P= −

Finite cameras

• CCD Cameras:

9Non-square pixels

910 DOF

• Finite projective camera:

9Including skew parameter s(zero for most normal cameras)

911 DOF (5+3+3)

=

1

y y y

x x x

p m fm

p m fm

M: 3x3 nonsingular

[

4

]

4]

[M|p MI|M p

P= = 1

{finite cameras}={P4x3=[M|p4]|det M≠0}

If mxand mypixels per unit distance in xand ydirections

⎥⎥

⎢⎢

=

1

0 0

y x

x x

α α K

=

1 1

y x x

x

p f

p f m m

⎥⎥

⎢⎢

=

1

y x

x x

p p α α K

Camera Models 6

Camera Models - The projective camera

• General projective cameras: P=

[

M|p4

]

C~

(4)

Multi View Geometry (Spring '08) K. M. Lee, EECS, SNU

• Camera center:

9 is the null-space of the camera projection matrix

9For all A, all points on the line ACproject on image of A, therefore Cis the camera center

9 Image of camera center is (0,0,0)T, i.e. undefined 9Finite Camera case:

9Infinite Camera case:

0 PC=

C A

X=λ +(1−λ)

PA PC PA

PX

x= =λ +

(1

−λ) =λ

⎟⎟⎠

⎜⎜⎝

=⎛− 1

4 1p C M

0 0⎟⎟⎠, =

⎜⎜ ⎞

=⎛d Md C

C~

Camera Models 8

The projective camera

• Column vectors of P:

[ ]

[

0 0 0 1

]

worldorigin

, While,

. and , to Similarily

on point axis, - X of direction 0

0 0 1 ,

4

3 1

=

=

=

=

T o

o

T X

X

D PD p

p p D PD p

2

π

(5)

Camera Models 9

Multi View Geometry (Spring '08) K. M. Lee, EECS, SNU

The projective camera

• Row vectors of P:

9The principal plane:

qthe plane passing Cparallel to the image plane, set of X, s.t.,

9Axis plane:

qPoints on P1,

qSimilarly, P2is a plane defined by Cand the line y=0 plane principal the

ng representi vector

the is

0 )

0 , , (

3

3

P

X P PX

=

= x y T T

0 line the and by defined plane

a is Thus,

on lies 0

axis - y on points )

, , 0 ( 0

1

1 1

1

=

=

=

=

x y

T

T T

C P

P C

C P

PX X

P ω

⎥⎥

⎥⎥

⎢⎢

⎢⎢

=

T T T

3 2 1

p p p P

Camera Models 10

The projective camera

• C is the intersection of P

1

, P

2

and P

3: C 0

P P P

=

⎥⎥

⎢⎢

T T T

2 2 1

Principal axis Camera

center C

Principal point

(6)

Multi View Geometry (Spring '08) K. M. Lee, EECS, SNU

• The principal point:

P3

Normal direction of P3

= (p31,p32,p33)T

x0

[

4

]

3 3

3

0 PPˆ M|P Pˆ Mm

x = = =

⎥⎥

⎥⎥

⎢⎢

⎢⎢

= 0 ˆ

33 32 31 3

p p p P

π

Point on π

Camera Models 12

The projective camera

• Principal axis vector:

9There is an ambiguity between m3and –m3

[ ] [ ]

camera the

of front the toward direction the

is

on t independen is

direction ) det(

) ˆ det(

ˆ) det(

ˆ

~ ˆ

| for

then , ) det(

Let

4 3 4

3 4

3

4 3

v

v m M

m KR m

M v

p M C R R K P

m M v

=

=

=

=

=

=

=

k k

k

k

k

m

3
(7)

Camera Models 13

Multi View Geometry (Spring '08) K. M. Lee, EECS, SNU

Action of projective camera on point

• Forward projection:

9Projection of vanishing point:

• Back-projection:

9Finite camera case:

D=(dT,0)T

)1

(

+=PT PPT P

A ray passing through C and P+x

4

~ 1

p M C=−

Back projected point on π C

x

P X

= +

I PP+=

Camera Models 14

The projective camera

• Depth of points:

9Consider the projection of a space point Xonto an image point x

. of direction (positive)

in the from of depth the

represent ,

1 and

0 det if , Thus

~) (~ ) ( Then,

1

~ 1

3 3

3 3

3

3 2 1

m C

X

m M

C X m C X P X P

X P P P PX x

ω ω

ω

=

>

=

=

=

⎥⎦

⎢ ⎤

⎥⎥

⎢⎢

=

=

⎥⎥

⎢⎢

=

T T

T

T T T

y x

Since PC=0

dot product of the ray from C to X, with the principal ray direction

(8)

Multi View Geometry (Spring '08) K. M. Lee, EECS, SNU

• In general, for

(

;

)

sign(det3 )

depth

m P M

X T

= ω

( )

T

X= X,Y,Z,T

Camera Models 16

The projective cameras - Decomposition of P

• Finding the camera center:

• Finding the camera orientation and internal parameters:

9Decompose Mas M= KRusing RQfactorization method 9K: Upper triangular matrix

9R: rotation matrix (orthogonal)

9Keep Kto have positive diagonals to resolve ambiguity SVD using of space null ) , , , (

, C P

0

PC= = X Y ZT T

p. 67

(9)

Camera Models 17

Multi View Geometry (Spring '08) K. M. Lee, EECS, SNU

Decomposition of P

• When is skew non-zero?

9 for CCD/CMOS, always s=0

9Image from image, s≠0 possible (non coinciding principal axis)

⎥ ⎥

⎢ ⎢

=

1

y x

x x

p p s α α K

1 γ

arctan(1/s)

Camera Models 18

Decomposition of P

Euclidean vs. projective

9 general projective interpretation

9 Meaningfull decomposition in K,R,trequires Euclidean image and space

9Camera center is still valid in projective space 9 Principal plane requires affine image and space

9 Principal ray requires affine image and Euclidean space

[ ] [ 4 4 homography ]

0 1 0 0

0 0 1 0

0 0 0 1 homography 3

3

×

⎥⎥

⎢⎢

×

= P

(10)

Multi View Geometry (Spring '08) K. M. Lee, EECS, SNU

• Camera at infinity

9Cameras center lying on the plane at infinity 9 affineand non-affinecameras

• Affine cameras:

9the last row of P, P3Tis the form of (0,0,0,1)

9Thus,points at infinityare mapped to points at infinity

9Consider moving back a finite projection camera while zooming to keep the size of object be the same

[ ]

0 singular is

4

=

= PC M

p

| M P

ray principal the

of direction in the

center camera

the from origin world the of distance the

~ : of principal ray direction

the :

3 0 3

C r r d =− T

Camera Models 20

Affine cameras

• Moving back at unit speed for a time t, so that

• Next, by zooming with a zooming factor so that the image size remains fixed. Then,

~ 3

~ C r

C→ −t

t t

dt T

at time ray principal the

of direction in the

center camera

the from origin world the of distance the

~ :

3 +

= r C

/d0

d k= t

(11)

Camera Models 21

Multi View Geometry (Spring '08) K. M. Lee, EECS, SNU

Affine cameras

Camera Models 22

Affine cameras

• As d

t

tends to infinity,

Affine camera

(12)

Multi View Geometry (Spring '08) K. M. Lee, EECS, SNU

• For point on plane parallel with principal plane and through the world origin,

• For general points

⎟⎟⎠

⎜⎜ ⎞

⎛ +

= 1

β αr1 r2

X P0X=PtX=PX

⎟⎟⎠

⎜⎜ ⎞

⎛ + +Δ

= 1

β

αr1 r2 r3 X

⎟⎟

⎜⎜

⎛ +

=

=

Δ

~

~

0 0

proj

d y x K X P x

x

proj affine

x x

0

⎟⎟

⎜⎜

=

=

0

affine ~

~ d

y x K X P x

(

proj 0

)

0 0 0

affine-~ ~ -~

~ x x x

x d

d

=

Camera Models 24

Affine cameras-Error

• Thus, the error in employing an affine camera:

• Approximation error is small if

9Δ is small compared to the average depth d0

9The distance of the point from the principal ray is small (i.e. small field of view)

(

proj 0

)

0 proj

affine

- ~ ~ - ~

~ x x x x

d

= Δ

(13)

Camera Models 25

Multi View Geometry (Spring '08) K. M. Lee, EECS, SNU

Affine cameras-Decomposition

• Decomposition of

or

Thus,

P

0 x0= for ~

⎥⎦

⎢ ⎤

⎥⎥

⎢⎢

⎥⎦

⎢ ⎤

=⎡ ×

1 1 0 0 0

0 0 1 0

0 0 0 1 ˆ 1

2 ˆ

2

T 0T

t R 0

0 K

Camera Models 26

Affine cameras

• Summary of parallel projection

⎥ ⎥

⎢ ⎢

=

1 0 0 0

0 0 1 0

0 0 0 1

P canonical representation

⎥ ⎦

⎢ ⎤

= ⎡

×

1 0

0 K

2 2

K calibration matrix

principal point is not defined

(14)

Multi View Geometry (Spring '08) K. M. Lee, EECS, SNU

• Orthographic projection:

• Incorporating rotation and translation

⎥⎥

⎢⎢

=

⎥⎥

⎥⎥

⎢⎢

⎢⎢

⎥⎥

⎢⎢

=

⎥⎥

⎢⎢

1 1 1 0 0 0

0 0 1 0

0 0 0 1

1

Y X Z Y X y

x

[

M t

]

0 r r 0

t

P R =

⎥⎥

⎢⎢

⎥=

⎢ ⎤

⎥⎥

⎢⎢

=

1 1 1 0 0 0

0 0 1 0

0 0 0 1

2 2

1 1

t t

T T

T

unit norm

5 DOF

Camera Models 28

Hierarchy of affine cameras

• Scaled orthographic projection:

• Weak perspective projection:

6 DOF

7 DOF

(15)

Camera Models 29

Multi View Geometry (Spring '08) K. M. Lee, EECS, SNU

Hierarchy of affine cameras

• Affine camera:

• In inhomogeneous coordinates

⎥⎦

⎢ ⎤

⎥⎥

⎢⎢

⎥⎦

⎢ ⎤

=⎡ ×

1 1 0 0 0

0 0 1 0

0 0 0 1 ˆ 1

2 ˆ

2

T 0T

t R 0

0 K

3x3 affine 4x4 affine

3x4 affine

linear mapping

8 DOF

Camera Models 30

Hierarchy of affine cameras

• Properties of the affine camera:

9Any projective camera with the principal plane is the plane at infinityis an affine camera

9The camera center is also lies on the plane at infinity 9Parallel lines in space are mapped to parallel image lines 9The vector dsatisfying M2x3d=0 is the direction of parallel

projection, and (dT,0)Tis the camera center.

⎥⎥

⎢⎢

=

⎥⎥

⎥⎥

⎢⎢

⎢⎢

0 0

Y X Z Y X

PA

plane at infinity

= principal plane

point at infinity

d 0 P ⎥=

⎢ ⎤

A

0

(16)

Multi View Geometry (Spring '08) K. M. Lee, EECS, SNU

• Non-affine camera at infinity

[ ]

0

zero not is row last but the singular is

4

=

= PC M

p

| M P

Camera Models 32

Other camera models

• Pushbroom cameras:

• Linear Pushbroom (LP) camera – satellite sensor, SPOT

(11dof)

(17)

Camera Models 33

Multi View Geometry (Spring '08) K. M. Lee, EECS, SNU

Other camera models

• straight lines are not mapped to straight lines

⎥⎦

⎢ ⎤

=⎡

⎥⎦

⎢ ⎤

→⎡

⎥⎥

⎥⎥

⎢⎢

⎢⎢

=

⎥⎥

⎢⎢

ω ~ /ω

~

1

y x y x Z Y X y

x P

hyperbola

~

~

~

~

+ + + = ⇒

α

xy

β

x

γ

y

δ

o

Camera Models 34

Other camera models

• Line cameras:

92D to 1D projection

95 DOF 0 PC=

camera center

참조

관련 문서

After camera calibration, we obtained the point cloud on the surface of the object and took this as the input of the calculation algorithm of the object

However, the existing management methods is difficult to cope with the accident.. Therefore this study suggests on the effective way using the CCTV

The proposed camera calibration method based on both algebraic and geometric method improves a calibration performance for difficult condition, which represents

The module includes a ultra-wide-angle lens unit, CMOS image sensor, camera processor unit, and LED lights.. All components are packaged in a cylindrical

In this paper, we propose a practical FastSLAM implementation method using an infrared camera for indoor environments. The infrared camera is equipped on a Pioneer3 robot

In [9], the moving object recognition method using the pattern analysis of an optical flow for mobile robot with a perspective camera has been developed.. In [3],

Abstract This paper presents Finger Keyboard which detects the user’s key types on a keyboard drawn on the paper using a video camera.. The Finger Keyboard software was

To advance its own national interests in this new era, the United States should center its grand strategy on four global collective goods, all of which require power projection