PETS2001 Camera Calibration

The following documents the camera calibration for the five datasets for PETS'2001.
Firstly, an example calibration and how to interpret it.  The calibration for the five datasets follows the same format.
Example Calibration and Interpretation

FocalLength f=1360

ImageCentre (u,v) = (384, 288)

Homogeneous Transform T =
 
0.77900
-0.18953
0.59769
0.00000
-0.62703
-0.23676
0.74215
0.00000
0.00084
-0.95290
-0.30327
0.00000
-3479.05000
-849.37500
33783.70000
1.00000

The transformation is from a world coordinate system (in which the x-y plane is the ground plane) to a camera coordinate system (in which the x-y plane is the image plane and the z axis is the optical axis).

To convert to raster coordinates you need to scale by the focal length and add the ImageCentre.

Note that real world measurements are in millimetres and image measurements are in pixels.

So let x be a point in the coordinate frame of the ground plane. Then that point in the coordinate frame of the camera is xT . The image of the point in raster coordinates is then given by

(f( xT ) x /( xT ) z + u, f( xT ) y /( xT ) z + v)

For example consider the point at the origin of the ground plane coordinates x = (0,0,0,1).

Then xT = (-3479.05, -849.375, 33783.7) and image of the point in raster coordinates is given by

(1360 x -3479.05 / 33783.7 + 384, 1360 x -849.375 / 33783.7 + 288)

= (-140.0 + 384, -34.2 + 288)

= (244, 253.8)

Similarly a point 1 metre above the ground plane origin x = (0, 0, 1000, 1) would be

(-3479.05 + 0.84, -849.375 - 952.9, 33783.7 - 303.27) = (-3478.21, -1802.275, 33480.43).

The image of the point is then given by

(1360 x - 3478.21/ 33480.43 + 384, 1360 x -1802.275 / 33480.43 + 288)

= (-141.3 + 384, -73.2 + 288)

= (242.7, 214.8)


 

The images used for calibration are available here.
 

Important note: The transformation matrix shown in the calibrations below are the inverse of what is required. Invert the transform and then follow the interpretation above.

Dataset 1

Camera 1
 

FocalLength f=773
ImageCentre (u,v) = (384, 288)
Homogeneous Transform T =

 
0.96663
0.25365
-0.03597
0.00000
-0.25612
0.95999
-0.11319
0.00000
0.00582
0.11862
0.99292
0.00000
12027.80000
-27960.20000
6829.21000
1.00000

Camera 2
 

FocalLength f=928
ImageCentre (u,v) = (384, 288)
Homogeneous Transform T =

 
0.69325
0.71940
-0.04325
0.00000
-0.65466
0.60349
-0.45522
0.00000
-0.30138
0.34389
0.88933
0.00000
16224.10000
-12237.00000
13104.30000
1.00000


Dataset 2

Camera 1
 

FocalLength f=1051
ImageCentre (u,v) = (384, 288)
Homogeneous Transform T =

 
0.97887
-0.20105
-0.03735
0.00000
0.19752
0.97687
-0.08191
0.00000
0.05295
0.07281
0.99594
0.00000
-15521.90000
-46044.30000
7024.76000
1.00000

Camera 2
 

FocalLength f=792
ImageCentre (u,v) = (384, 288)
Homogeneous Transform T =

 
-0.94194
0.33537
-0.01657
0.00000
-0.33152
-0.93668
-0.11278
0.00000
-0.05334
-0.10073
0.99348
0.00000
11791.10000
22920.20000
6642.89000
1.00000

 

Dataset 3

Camera 1
 

FocalLength f=793
ImageCentre (u,v) = (384, 288)
Homogeneous Transform T =

 
0.88823
0.45909
-0.01670
0.00000
-0.45796
0.88201
-0.11101
0.00000
-0.03623
0.10625
0.99368
0.00000
33790.20000
-29715.10000
6616.57000
1.00000

Camera 2
 

FocalLength f=1110
ImageCentre (u,v) = (384, 288)
Homogeneous Transform T =

 
-0.99931
-0.03711
-0.00182
0.00000
0.03712
-0.99499
-0.09286
0.00000
0.00164
-0.09287
0.99568
0.00000
613.33900
39855.00000
6996.46000
1.00000
 
Dataset 4
 
Camera 1
 
FocalLength f=773
ImageCentre (u,v) = (384, 288)
Homogeneous Transform T =

 
0.96663
0.25365
-0.03597
0.00000
-0.25612
0.95999
-0.11319
0.00000
0.00582
0.11862
0.99292
0.00000
12027.80000
-27960.20000
6829.21000
1.00000

Camera 2

 
To be added

 

Dataset 5
 
Camera 1
 
FocalLength f=950
ImageCentre (u,v) = (384, 288)
Homogeneous Transform T =

 
0.99981
0.01004
-0.01684
0.00000
-0.00913
0.99852
0.05361
0.00000
0.01735
-0.05345
0.99842
0.00000
1200.00000
-19136.50000
1100.00000
1.00000

Camera 2

 
FocalLength f=860
ImageCentre (u,v) = (384, 288)
Homogeneous Transform T =

 
-0.99927
0.03820
0.00100
0.00000
-0.03804
-0.99701
0.06727
0.00000
0.00357
0.06718
0.99773
0.00000
1200.0000
-21136.50000
1107.97000
1.00000