Recall from camera basics that a world point projects to image pixels via
Out of these, we need to calibrate:
- Intrinsic parameters , i.e. ()
- Extrinsic paramaters:
Additionally, we need to calibrate radial distortion, which cause lines to bend.

The common correction model for this is:
where
We also may need to calibrate for misalignment of and axes, as some sensors do not have perfectly square pixels or perfectly orthogonal pixel grid axes.
Typically, we calibrate using a known pattern like a checkerboard. We detect the corners in multiple images, and use those known 3D→2D corresponds, and then solve for intrinsic, extrinsic, and distortion parameters.