Pinhole Camera Models

Coordinate Systems

World Coordinates

Camera Coordinates

Image Coordinates

Pasted image 20240812155809.png|300

Perspective Projection

The perspective projection transforms from camera coordinates to image coordinates. Let the image coordinates be xs, and the camera coordinates be xc, we have

(xsys)=(fxxc/zcfyyc/zc).

Axis Skew

Axis skew causes shear distortion of the projected image. The skew can be defined as the shift on the x-axis, which is proportional to the y-axis, parameterized by the factor s:

xs=fxxczc+syczc.

Principal Point Offset

The origin of the image coordinates may deviate from the principal point. We parameterize this with an offset on the x- and y-axis:

xs=fxxczc+syczc+cxys=fyyczc+cy.

Perspective Projection in Matrix Representation

Putting the above together, if we write xsR2 in homogeneous coordinates x~sR3, we have

x~s=[fxscx00fycy00010]x¯c,

where x¯c is xc written in homogeneous coordinates.

Chaining Transformations

The transformation from the world coordinates to the camera coordinates can be parameterized as a rotation matrix RSO(3)R3×3 and a translation vector tR3. We call R and t the extrinsic parameters. The above projection matrix can be written as [K0], where KR3×3 is the intrinsic parameters. Therefore

x~s=[K0][Rt0T1]x¯w=Px¯w.