CS4495/6495 Introduction to Computer Vision 3C-L2 Intrinsic camera - - PowerPoint PPT Presentation

cs4495 6495
SMART_READER_LITE
LIVE PREVIEW

CS4495/6495 Introduction to Computer Vision 3C-L2 Intrinsic camera - - PowerPoint PPT Presentation

CS4495/6495 Introduction to Computer Vision 3C-L2 Intrinsic camera calibration Geometric Camera calibration Composed of 2 transformations: From some (arbitrary) world coordinate system to the cameras 3D coordinate system. Extrinisic


slide-1
SLIDE 1

3C-L2 Intrinsic camera calibration

CS4495/6495 Introduction to Computer Vision

slide-2
SLIDE 2

Geometric Camera calibration

Composed of 2 transformations:

  • From some (arbitrary) world coordinate system to

the camera’s 3D coordinate system. Extrinisic parameters (or camera pose)

slide-3
SLIDE 3

Camera Pose

World Coordinates Camera Coordinates

c wT

𝑨 𝑧 𝑦 𝑧 𝑦 𝑨

slide-4
SLIDE 4

From World to Camera

Homogeneous coordinates

| | 1

C C C W W W

p R t p                                             

From world to camera is the extrinsic parameter matrix (4x4)

(sometimes 3x4 if using for next step in projection – not worrying about inversion)

slide-5
SLIDE 5

Geometric Camera calibration

Composed of 2 transformations:

  • From some (arbitrary) world coordinate system to

the camera’s 3D coordinate system. Extrinisic parameters (or camera pose)

  • From the 3D coordinates in the camera frame to the

2D image plane via projection. Intrinisic parameters

slide-6
SLIDE 6

Ideal intrinsic parameters

x u f z y v f z   Ideal Perspective projection:

slide-7
SLIDE 7

Real intrinsic parameters (1)

x u z y v z    

But “pixels” are in some arbitrary spatial units

slide-8
SLIDE 8

Real intrinsic parameters (2)

x u z y v z     Maybe pixels are not square

slide-9
SLIDE 9

Real intrinsic parameters (3)

x u z y v u v z      

We don’t know the origin of our camera pixel coordinates

slide-10
SLIDE 10

Really ugly intrinsic parameters (4)

May be skew between camera pixel axes

v

u v u

sin( ) cos( ) cot( ) v v u u v u v           

slide-11
SLIDE 11

Really ugly intrinsic parameters (4)

cot( ) sin( ) y x u u z v v z z y           May be skew between camera pixel axes

v

u v u v u v u u v v ) cot( ) cos( ) sin(           

slide-12
SLIDE 12

Intrinsic parameters, non-homogeneous coords

cot( ) sin( ) x y u u z z y v v z          

Notice division by z

slide-13
SLIDE 13

p' K

C p

Intrinsic parameters, homogeneous coords

cot( ) * * sin( ) 1 1 x u z u y z v v z z                                         

In camera- based 3D coords In homogeneous pixels Intrinsic matrix

slide-14
SLIDE 14

Kinder, gentler intrinsics

  • Can use simpler notation for intrinsics –

remove last column which is zero:

1

x y

f c K f c s a           

f –focal length s – skew a – aspect ratio cx,cy - offset (5 DOF)

slide-15
SLIDE 15

Kinder, gentler intrinsics

  • If square pixels, no skew, and optical center is

in the center (assume origin in the middle):

1 f K f           

In this case

  • nly one DOF,

focal length f

slide-16
SLIDE 16

Kinder, gentler intrinsics

  • Can use simpler notation for intrinsics –

remove last column which is zero:

1

x y

f c K f c s a           

f –focal length s – skew a – aspect ratio cx,cy - offset (5 DOF)

slide-17
SLIDE 17

Quiz

The intrinsics have the following: a focal length, a pixel x size, a pixel y size, two offsets and a skew. That’s 6. But we’ve said there are only 5 DOFS. What happened:

a)

Because f always multiplies the pixel sizes, those 3 numbers are really only 2 DOFs.

b)

In modern cameras, the skew is always zero so we don’t count it.

c)

In CCDs or CMOS cameras, the aspect is carefully controlled to be 1.0, so it is no longer modeled.

slide-18
SLIDE 18

Combining extrinsic and intrinsic calibration parameters

' K

C

p p 

Intrinsic Extrinsic

| | 1

C C C W W W

p R t p                                              World 3D coordinates Camera 3D coordinates Pixels

slide-19
SLIDE 19

Combining extrinsic and intrinsic calibration parameters

 

'

C C W W W

K R p p t  '

W

M p p 

K 3x3 3x4

slide-20
SLIDE 20

Other ways to write the same equation

1 2 3

. . . . . . . * 1 1 . . *

W x T T T W y W z

p u s u p v s v p s m m m                                             

'

W p

M p 

pixel coordinates world coordinates

1 3 2 3

m P u m P m P v m P      

projectively similar

Conversion back from homogeneous coordinates

slide-21
SLIDE 21

Finally: Camera parameters

  • A camera (and its matrix) M (or Π) is described by

several parameters

  • Translation T of the optical center from the origin of world

coordinates

  • Rotation R of the camera system
  • focal length and aspect (f, a) [or pixel size (sx, sy)] , principle

point (x’c, y’c), and skew (s)

  • blue parameters are called “extrinsics,” red are “intrinsics”
slide-22
SLIDE 22

* * * * * * * * * * * * 1 X sx Y sy Z s                                  

x M X

Finally: Camera parameters

  • Projection equation – the cumulative effect of all parameters:
slide-23
SLIDE 23

3 1 3 1 3 3 3 3 1 3 1 3

' 1 ' 1 1 1 1 1

c x x x x c x x

f s x af y                                     

R I T M

projection intrinsics rotation translation

Finally: Camera parameters

  • Projection equation – the cumulative effect of all parameters:

DoFs: 5+0+3+3 = 11

(3x4)