Docsity

11.1 Camera matrix, Summaries of Linear Algebra

Partial preview of the text

Download 11.1 Camera matrix and more Summaries Linear Algebra in PDF only on Docsity!

Camera Matrix

16-385 Computer Vision (Kris Kitani) Carnegie Mellon University

2D to 2D Transform (last session)

A camera is a mapping between the 3D world and a 2D image

x = PX

camera matrix 3D world point 2D image point What do you think the dimensions are? A camera is a mapping between the 3D world and a 2D image

camera center

X

image plane x principal axis The pinhole camera x y z z = f What is the equation for image coordinate x (in terms of X )? principal point

f y z X Y Z image plane ? What is the equation for image coordinate x (in terms of X )?

camera center

X

image plane x principal axis Pinhole camera geometry x y z z = f

x = PX

What is the camera matrix P for a pinhole camera model? principal point

2 4 X Y Z 3 5 = 2 4 p 1 p 2 p 3 p 4 p 5 p 6 p 7 p 8 p 9 p 10 p 11 p 12 3 5 2 6 6 4 X Y Z 1 3 7 7 5

[X Y Z]

! [f X/Z f Y /Z]

Relationship from similar triangles…

P =

generic camera model What does the pinhole camera model look like?

P =
f 0 0 0
0 f 0 0

Camera origin and image origin might be different camera coordinate system image coordinate system CCD array p

P =
f 0 p

x

0 f p

y

Accounts for different origins camera coordinate system image coordinate system CCD array p

X

world point Ocamera Oimage Oworld In general, there are three different coordinate systems… x image point so you need the know the transformations between them

P =

f 0 px 0 f py 0 0 1

P = K[I| 0 ] Can be decomposed into two matrices K =

f 0 px 0 f py 0 0 1

(^5) calibration matrix (3 x 3) (3 x 4)

P =

f 0 px 0 f py 0 0 1

Assumes that the camera and world share the same coordinate system xc yc zc zw xw yw R t World coordinate system Camera coordinate system 3R rotation and translation to align axis What if they are different? How do we align them?

xc yc zc zw xw yw World coordinate system Camera coordinate system Xw