Skip to main content

General Camera Parameters


πŸ” Parameter Overview:​

{
distortion: new THREE.Vector2(0, 0), // uK0
principalPoint: new THREE.Vector2(0, 0), // uCc
focalLength: new THREE.Vector2(1, 1), // uFc
skew: 0, // uAlpha_c
}

βœ… Definitions and Roles of Each Parameter in Camera Model:​

ParameterUniform NameMeaningCorresponding Item in Camera Matrix
distortionuK0The first parameter of radial distortion coefficients (K1, K2...) (e.g., K1 for the $r^2$ term)N/A (used in distortion function)
principalPointuCcPrincipal point (image center), in pixels. Typically near the center of the image, e.g., (cx, cy)Offset terms in the camera intrinsic matrix $(c_x, c_y)$
focalLengthuFcFocal length, in pixels. Typically $(f_x, f_y)$, related to horizontal/vertical scaling of the image$f_x, f_y$ in the camera intrinsic matrix
skewuAlpha_cNon-orthogonality between pixels, normally 0; non-zero only in cases of special lenses or sensor tiltingSkew term (Ξ±) in the camera intrinsic matrix

πŸ“· Correspondence of Camera Intrinsic Matrix (K):​

$$
K =
\begin{bmatrix}
f_x & \alpha & c_x \\
0 & f_y & c_y \\
0 & 0 & 1
\end{bmatrix}
$$

PS:

  • focalLength β†’ $f_x, f_y$
  • skew β†’ $\alpha$
  • principalPoint β†’ $c_x, c_y$

πŸ’‘ Retrieving Parameters from Camera Calibration Tools (e.g., OpenCV's cv::calibrateCamera()):​

cv::Mat cameraMatrix = [ fx,  skew, cx,
0, fy, cy,
0, 0, 1 ];
cv::Mat distCoeffs = [ k1, k2, p1, p2, k3 ];
  • k1, k2 β†’ Correspond to the passed-in uK0
  • fx, fy, cx, cy, skew β†’ Correspond to the aforementioned items respectively.