Perspective Projection:

image.png

Perspective Projection Equations:
2. Geometric Model of Camera - 图2
2. Geometric Model of Camera - 图3


Coordinate Rotation and Translation:

2D coordinate rotation and transformation:
image.png
2D coordinate transformation using Homogeneous Coordinates:
image.png
**

Homogeneous Coordinates:

translations with HC:

2. Geometric Model of Camera - 图6

scalings with HC:

2. Geometric Model of Camera - 图7

rotation with HC:

2. Geometric Model of Camera - 图8

w:

  • The distance from object to origin (or projector)

3D Rotation:

3D Rotation in homogeneous coordinates:
2. Geometric Model of Camera - 图9

X-axis:

image.png

Y-axis:

image.png

Z-axis:

image.png

combine the 3 rotations:

2. Geometric Model of Camera - 图13

inversions of 3D rotation matrix:

2. Geometric Model of Camera - 图14
2. Geometric Model of Camera - 图15
so that
2. Geometric Model of Camera - 图16

Also,
2. Geometric Model of Camera - 图17
2. Geometric Model of Camera - 图18


Perspective Projection:

2 methods:

  • Transformation
    • N dim to N dim
  • Projection
    • N dim to M dim

and we seek a transformation matrix in:
2. Geometric Model of Camera - 图19

using homogenous coordinate, we have a linear relation:
2. Geometric Model of Camera - 图20
so that
2. Geometric Model of Camera - 图21
2. Geometric Model of Camera - 图22

Perspective Projection Matrix:

(using homogeneous coordinates)
image.png


World to camera transformation:

Transform coordinations, R is based on from Pw to Pc.
(w = world, c = camera)
image.png
(Pc and Pw are from the same point)

World to Camera Coordinate Transformation Matrix:

2. Geometric Model of Camera - 图25
R is 3D rotation matrix,
C is a vector of camera position in world frame

for example, this matrix looks like:
2. Geometric Model of Camera - 图26

Then the corresponding transformation from world coordinates to camera coordinates is:
image.png

Camera Coordinates to Image Coordinates Matrix:

2. Geometric Model of Camera - 图28
2. Geometric Model of Camera - 图29
2. Geometric Model of Camera - 图30: pixel sizes in mm per pixel
image.png

and the camera calibration matrix is:
2. Geometric Model of Camera - 图32

  • x, y are in pixels, so 2. Geometric Model of Camera - 图33 are in millimeters/pixel
  • f is in millimeters
  • 2. Geometric Model of Camera - 图34 are in pixels

image.png

  • Image co-ordinates are in pixels
  • Camera co-ordinates are in millimetres

In/Extrinsic Parameters:

  • Extrinsic parameters define the location and orientation of the world reference frame with respect to the camera reference frame
  • Intrinsic parameters link pixel co-ordinates in the image with the corresponding co-ordinates in the camera reference frame

Parameters in K are intrinsic camera parameters.
[R -C] has extrinsic camera parameters.


Projection matrix:

2. Geometric Model of Camera - 图36
It maps 3d points to the appropriate image coordinates in pixels

example:
image.png
image.png


Weak Perspective Model / Orthography:

If the distance between any 2 points in an object is much smaller (1/20 at most) at most than the average distance of the object (2. Geometric Model of Camera - 图39)
The camera projection can be approximated as:
image.png
(simply is to approximate the coordinate with a approximate average Z value)
This method can simplify some mathematics.

Image distortion due to optics:

Radial Distortion:

depends on radius r, there is radial distortion from center of image
image.png

Error is proportional to distance of pixel from the camera center (the radius of the point)
image.png

Tangential Distortion:

(Ox, Oy) – center of projection is not the center of image
image.png

Reference: