A world coordinate
The XY plane of the world coordinate system is called the principal plane, and the world Z-axis is called the principal axis. The intersection of the principal axis and the image plane is called the principal point.
As convention;
A pinhole camera is essentially mapping a 3D space to a 2D one.
where,
Now, consider an offset to the principal point, such that it is no longer at the origin but at
Here,
Which is just a translation added on top of the original matrix with just the focal length. Look at: Image processing > Affine transformation.
Let the coordinates after some translation and rotation be,
Basically, we translate and then rotate to get final camera center. Now, we can find the new projected point for a world coordinate, by using the camera calibration matrix on the new camera center.
Rewriting this, we get:
Based on the previous math, we consider a matrix