Camera Intrinsic Parameters: What They Are and Why Traceability Matters

Camera intrinsic calibration explained: K matrix, distortion, Zhang's checkerboard method, quality checks, and why intrinsics need traceable, dated…

Camera Intrinsic Parameters: What They Are and Why Traceability Matters
Written by TechnoLynx Published on 11 Jul 2026

Camera intrinsic parameters describe the camera itself. They are the focal lengths fx and fy in pixels, the principal point (cx, cy), an axis skew term and the lens distortion coefficients, and together they turn a 3D point in the camera’s own frame into a pixel. Camera intrinsic calibration estimates these values, commonly from several views of a planar pattern such as a checkerboard, using Zhang’s method. The result is a dated measurement, not a constant. It is tied to one dated calibration run, and it drifts across units, lots and re-calibrations. When the intrinsics are wrong, every projection in the pipeline inherits the same systematic warp.

What Focal Length, Principal Point, Skew and Distortion Each Control

Each intrinsic parameter describes one geometric property of the camera. Taken one by one:

  • Focal length (fx, fy). This is the distance between the pinhole and the image plane, measured in pixels. It sets how strongly the camera magnifies the scene onto the sensor. In an ideal pinhole camera fx and fy are equal; if the pixels are not square, each axis needs its own scale factor.
  • Principal point (cx, cy). This is where the principal axis (the line through the pinhole, perpendicular to the image plane) meets the image. It usually sits close to the image centre, and it is one of the hardest parts of the model to estimate when only a few calibration images are used.
  • Skew. The skew coefficient encodes the angle between the x and y pixel axes. Rectangular pixels are now the usual assumption, so skew is commonly fixed at zero and left out of the estimation.
  • Distortion coefficients. Real lenses add mostly radial distortion and slight tangential distortion on top of the pinhole model. Tangential distortion comes from decentering, meaning imperfect centring of the lens elements and other manufacturing defects in a compound lens. OpenCV supports radial terms k1 to k6, tangential terms p1 and p2, and thin-prism terms s1 to s4.

Distortion coefficients count as intrinsics because they do not depend on the scene being viewed. The extrinsic side (where the camera sits relative to the world or the vehicle) is a separate set of parameters, covered in the projection section below and in more depth in our comparison of camera intrinsic vs extrinsic parameters for automotive perception.

The Camera Intrinsic Matrix: How Fx, Fy, Cx and Cy Place a Point on the Pixel Grid

The intrinsic matrix collects the linear parameters into one 3×3 matrix, usually written K (OpenCV calls it A). Android’s camera API gives it in the same layout, with the skew term s in the top row:

K = | fx   s   cx |
    |  0  fy   cy |
    |  0   0    1 |

Zhang’s paper writes the same matrix with α and β as the scale factors along the image u and v axes, γ as the skew and (u0, v0) as the principal point.

The intrinsic matrix maps 3D camera coordinates to 2D homogeneous image coordinates. For a point (X, Y, Z) in the camera frame, multiplying by K and dividing by Z gives the pixel: u = fx·X/Z + s·Y/Z + cx and v = fy·Y/Z + cy. Dividing by Z is the perspective step. fx and fy turn the resulting normalised coordinates into pixels, and cx and cy move the origin from the optical axis to the image corner.

The reason everything is in pixels is a useful one. Infinitely many pinhole cameras produce the same image, so the intrinsic transformation does not change under uniform scaling of the camera geometry, and pixel units capture only the relative dimensions that matter. If you need millimetres, similar triangles convert fx into world units once one physical dimension (such as the sensor width) is known.

How Do Camera Intrinsics Work Together with Extrinsics in the Projection?

Intrinsics handle camera-to-pixel; extrinsics handle world-to-camera. OpenCV’s pinhole model projects a world point Pw to a pixel p as s·p = A·[R | t]·Pw, where A is the intrinsic matrix, R and t are the rotation and translation from world to camera coordinates, and s is an arbitrary projective scale that is not part of the camera model. The extrinsics are a rigid transformation from the 3D world frame to the 3D camera frame, and the intrinsics are the projective transformation from the camera frame onto the 2D image. In a vehicle, the extrinsics describe where the camera sits and how it is oriented relative to the vehicle reference frame, while the intrinsics stay fixed unless the lens or sensor physically changes. Intrinsic and camera extrinsic parameters fail in completely different ways.

The two sets are not independent in practice. A camera is a tightly coupled system in which errors in the intrinsics are compensated by wrong values in the extrinsics, and vice versa, so that the reprojection error stays close to zero. Errors in the principal point can be absorbed by an incorrect camera location, and the biased values then feed into the focal length. For anyone using a calibration to drive pose estimation from extrinsic calibration, this matters: a good-looking fit can hide a pose that is wrong.

How Is Camera Intrinsic Calibration Done with a Checkerboard and Zhang’s Method?

Zhang’s method needs only a planar pattern seen from at least two orientations, with either the camera or the pattern moved by hand and no need to know the motion. It solves for the intrinsics in closed form and then refines them with a maximum-likelihood nonlinear step. Zhang’s recommended procedure runs in this order:

  1. Print a pattern and attach it to a planar surface.
  2. Take a few images of the plane in different orientations, moving either the plane or the camera.
  3. Detect the feature points in each image.
  4. Estimate the five intrinsic parameters and all the extrinsics with the closed-form solution.
  5. Estimate the radial distortion coefficients by linear least squares.
  6. Refine all parameters together by minimising the reprojection error.

The final refinement is a nonlinear minimisation solved with Levenberg-Marquardt. Zhang modelled only the first two radial terms, k1 and k2, with the distortion centred on the principal point. That 4th-order radial model with no tangential term is the one the Caltech toolbox refers to as Zhang’s model.

In OpenCV, the same workflow is built from a handful of functions. findChessboardCorners locates the internal corners, cornerSubPix refines them to sub-pixel accuracy, and calibrateCamera estimates intrinsics and per-view extrinsics from several views. The sector-based findChessboardCornersSB returns sub-pixel corners that its authors show are more accurate than cornerSubPix. OpenCV’s tutorial asks for at least 10 test patterns for better results. Zhang’s own experiments show the uncertainty of the final estimate falling as images are added from two to five.

The board has to be tilted about both in-plane axes, because rotation about the axis normal to the board only rotates the image in-plane. Coded targets such as ChArUco boards let you collect observations right up to the edges of the sensor, which constrains the distortion parameters well. OpenCV likewise notes that patterns larger than the field of view allow more accurate calibration because corners can be used close to the image borders. For OpenCV’s release-object method, the target must be rigid, or at least static if the camera moves instead.

Zhang’s report says the pattern can be printed on a laser printer and fixed to a reasonable flat surface, while Calib.io recommends using laser or inkjet printed targets only for validation and testing. We would side with Calib.io for any calibration that ends up in production. Zhang’s simulations found systematic non-planarity of the target affects precision more than random errors in point positions, with results still usable below about 3% non-planarity.

Judging Whether a Calibration Is Good Enough

Reprojection error estimates how exact the calibrated parameters are. It is the difference between where the model projects a known 3D point and where that point was actually detected, and the closer it is to zero, the more accurate the parameters. A low value does not prove the model matches the real camera.

A study of focus in calibration makes the point sharply. When a focusing lens readjusts as the board moves closer or further away, the images are taken at different focal lengths. Zhang’s method still returns a reprojection error close to zero, but the extrinsics it recovers are consistently wrong. In that study the computed camera location was always closer to the template than the true location, by a mean of 100 mm, and the scale factors α and β were biased as a result. The fix is to take all calibration images at distances where the focal length is constant, or to model several focal lengths.

Judge a calibration on several signals, not one:

Check What a good result looks like Why
Overall reprojection error Close to zero It shows the model fits the detected corners, not that it matches the real camera
Per-point residuals Directions and sizes that do not correlate with image position Structured residuals point to a model or target problem
Parameter standard deviations Small relative to the values, for every estimated term OpenCV’s calibrateCamera returns them; a parameter that is not estimated reports zero
Projection uncertainty Low mrcal treats it as sensitivity to calibration-time pixel noise and propagates it through downstream computation
Focus state during capture Fixed focus, or all frames within the constant-focal-length range Refocusing between frames biases a single-focal-length model
Repeatability Repeated or cross-validated calibrations agree In InFlux’s tests, the original Kalibr’s random frame ordering occasionally produced outlier intrinsics across runs
Principal point Near the image centre, unless the optics justify otherwise It is hard to estimate from few images; fixing it at the centre is sometimes recommended

Two details are easy to miss. The Caltech toolbox reports its uncertainties at roughly three times the standard deviation, so they are not directly comparable with OpenCV’s standard deviations. Lean distortion models also report less uncertainty than rich ones simply because they are stiffer, which is why mrcal recommends a splined model for honest uncertainty reporting.

How Lens Distortion Models Relate to the Intrinsic Matrix, and When to Correct for It

In Zhang’s formulation the normalised coordinates are distorted by the radial polynomial first, and the intrinsic parameters then map the distorted coordinates to pixels, with the distortion centred on the principal point. Android documents the same order for its camera metadata: apply pose and intrinsic calibration to a world point, then apply the distortion transform to get the final pixel coordinate. This is why K and the distortion vector only make sense as a pair, estimated together and stored together.

How rich the model needs to be depends on the lens. For standard, non-wide-angle fields of view, the Caltech toolbox advises not pushing radial distortion beyond 4th order, and notes that the tangential terms can often be dropped. Zhang reports that the distortion function is likely to be dominated by the radial terms, especially the first one, and that more elaborate models can cause numerical instability. Those defaults are stated for standard fields of view, not for wide-angle optics.

When does a pipeline have to undistort? When radial distortion is present, straight lines appear curved, and correcting it matters. In our view the deciding question is whether anything downstream uses geometry: measurement, triangulation, mapping into a bird’s-eye view, or projecting detections onto lidar or a map all need undistorted coordinates. A detector trained and run on raw frames from the same lens can live with distortion, as long as that pairing never changes. You can undistort whole images, or undistort only the detected points before geometric use.

Undistorting changes the intrinsics too. OpenCV’s getOptimalNewCameraMatrix returns a new camera intrinsic matrix controlled by a free scaling parameter: alpha=0 keeps only valid pixels, alpha=1 keeps every original pixel including the black corners, and values in between trade the two. After undistortion, the new matrix describes the images, and those images carry no remaining distortion. Code that keeps using the original K on undistorted frames, or the new K on raw frames, uses intrinsics that do not match its images.

How Do Camera Intrinsics Change When You Resize, Crop or Rectify Images?

Resizing changes the intrinsics predictably, and the distortion coefficients do not change. OpenCV states that if an image is scaled by a factor, fx, fy, cx and cy must be scaled by the same factor. The distortion coefficients stay the same at any resolution: a camera calibrated at 320 × 240 uses exactly the same coefficients at 640 × 480, while fx, fy, cx and cy are scaled. Distortion is defined on normalised coordinates, which do not depend on pixel count.

Operation on the image fx, fy cx, cy Skew Distortion coefficients
Uniform resize by factor k multiply by k multiply by k multiply by k unchanged
Crop with top-left offset (x0, y0) unchanged cx − x0, cy − y0 unchanged unchanged
Letterbox padding (px, py) unchanged cx + px, cy + py unchanged unchanged
Undistort or rectify taken from the new camera matrix taken from the new camera matrix per the new matrix zero for the corrected image

Every resize, crop and pad between the sensor and the model should be logged as a transform applied to K, so the matrix the geometry code uses matches the image it is looking at. The image-centre convention needs the same care: the Caltech toolbox places the image centre at ((nx−1)/2, (ny−1)/2).

How Can You Get Intrinsic Parameters for an iPhone or Android Phone Without a Full Calibration?

Phones expose factory intrinsics through their camera APIs. On Android, CameraCharacteristics.LENS_INTRINSIC_CALIBRATION returns five values, [fx, fy, cx, cy, s], and LENS_DISTORTION returns the radial and tangential correction coefficients. These are expressed in the pre-correction active array coordinate system, so they must be mapped to the output buffer you actually process. Separate keys apply when the sensor runs in maximum-resolution pixel mode. ARCore’s camera intrinsics interface provides the camera’s physical characteristics, including the focal length in pixels. On Apple devices, factory-calibrated intrinsics come through AVFoundation capture sessions and ARKit. EXIF metadata gives a focal length in millimetres (often with a 35 mm equivalent), which you can convert to pixels using the sensor or frame width, provided you assume the principal point is at the image centre.

For some tasks an approximate value is enough. Calvet and colleagues built default smartphone intrinsics from a generic model whose focal length came from offline calibration of several phones, and found that very approximate calibration still gave accurate circle pose estimation, especially when the marker was far from the camera. Across the phones they surveyed, 35 mm-equivalent focal lengths all fell within ±30% of the average.

Factory values become dangerous when you measure. In a study of TrueDepth data across iPhone and iPad generations, Apple’s API returned a focal length that was wrong by about 7% on the iPad 12.9” 5th generation and iPad 11” 3rd generation, and the ARKit path was off by a further 7.5% in the same direction. With factory intrinsics, camera pose estimates on those models disagreed by more than 14 mm, and the gap disappeared once the authors used their own ChArUco calibration. The same authors found that factory focal lengths changed with the iOS 14 to iOS 15 update, by 0.5 pixel on an iPhone 11 Pro and by more on an iPad 12.9”. A phone’s factory intrinsics also depend on the OS version, which changes without the lens moving.

Why Intrinsics Differ Between Units of the Same Model and Change After Refocusing

The assumption of constant intrinsics breaks for zoom lenses and autofocus cameras.

Turning a lens’s zoom and focus rings moves internal lens groups, which changes the intrinsics, and even smartphone cameras change intrinsics through autofocus. The focal length in the camera model equals the lens’s nominal focal length only when the lens is focused at infinity, and the gap grows as the focus distance shortens. In Ricolfe-Viala’s measurements, a Robotiq wrist camera kept a constant focal length only for objects between 150 mm and 1200 mm away. That means a calibration is valid only for a stated range of working distances. The InFlux benchmark handles changing focus and zoom by calibrating each lens at sampled focal length and focus distance settings and storing the results in a per-lens lookup table.

Units of the same model differ as well. The iPad study found different intrinsic parameters for different devices of the same generation. mrcal lists evaluating manufacturing variation between lenses, and measuring intrinsics drift caused by mechanical or thermal stress, among the uses of its model-differencing tool. A Sensors 2020 study of smartphone and Raspberry Pi cameras starts from the same premise: interior orientation parameters are valid only while the camera geometry stays stable, and temperature changes are one of the things that disturb it. If you are managing many camera models across a vehicle line, the problem compounds, which is the subject of taming a heterogeneous camera fleet.

The production damage is systematic. In a case described in our explainer on focal length, principal point and distortion, a perception team spent two weeks retraining a detector to fix a persistent 3-pixel centroid bias that actually came from wrong intrinsics, and retraining could not fix it. Sensitivity also depends on the optics: at low focal lengths in pixels, a small change in focal length moves an unprojected 3D point much further than the same change would at a high focal length. Varying the focal length also distorts the relative angles between surfaces and the apparent scene geometry.

How Do You Preserve Source-to-Document Traceability When Intrinsic Parameters Are Digitised and Reconciled Across Camera Lots?

The goal is that every perception result can be traced back to the specific calibration it used. Treat each intrinsic calibration as a dated supplier input with a verifiable link to the calibration run that produced it, rather than as one clean record copied from a datasheet. TechnoLynx’s computer vision R&D work covers calibration-aware perception pipelines, including validation that checks each camera intrinsic record in a supply chain still traces back to the calibration run behind it.

Quality standards already address measurement traceability. IATF 16949’s measurement traceability clause requires calibration and verification to be traceable to national or international standards, or to a documented basis where no such standard exists. It also requires records that include equipment identification, calibration date, calibration method and results. The clause is framed around equipment calibration. Applying the same record discipline to the intrinsics of a perception camera is our judgement, but it is the obvious one when that camera’s output is used as evidence.

Within a digital supply chain for supplier compliance data, intrinsic calibrations enter as supplier inputs at sensor onboarding and should travel with the unit, or with the lot where per-lot calibration is the agreed basis. A record that will survive review carries at least the following:

  • unit serial or lot identifier, and the calibration date and run id;
  • method, target type and tool version (for example OpenCV calibrateCamera with a ChArUco board);
  • the image resolution and pixel-centre convention the values refer to;
  • focus setting and the working-distance range over which the values are valid;
  • the distortion model and coefficient order, since tools use different models;
  • reprojection error and per-parameter uncertainties;
  • for phone or embedded devices, the firmware or OS version that reported the values.

Re-calibration should add a new dated record, and mrcal’s model differencing can then quantify the intrinsics difference between two calibrations of the same lens, making drift over time measurable. Keeping both versions is what lets that comparison happen at all.

AI document automation has a place at the intake step. Extracting fields from supplier calibration certificates into structured records, and flagging missing resolution, focus or model fields, is a good fit. Automation should stay out of reconciliation. When two lots or two calibration runs disagree, flattening the numbers into one “clean” record hides the version history a finding will surface. Disagreements should be routed to an engineer with both sources attached.

Each team should settle the scope of a single intrinsic record: one per unit, one per lot, or one per focus setting per unit. The evidence on unit variation and focus dependence points toward finer scope. Where you draw that line should be decided explicitly and written into the supplier agreement, so the camera’s measured behaviour drives it, not whatever the onboarding portal happens to make convenient.