Autonomous Vehicle/Video Geometry

Camera Calibration

Naranjito 2024. 7. 23. 12:10


The tree(3D) ←→ Camera(2D)

 

The tree : The point we're seeing with our eyes, 3D point which has world coordinate

Camera : When we take the tree, it transforms to 2D


When we take the picture of the tree, the camera influenced by the Camera intrinsic parameters-lens, the distance between the lens and the image sensor, the angle between the lens and the image sensor, etc.

 

Therefore, when finding the position where the 3D points are projected on the image or, conversely, restoring the 3D coordinates from the image coordinates, these internal factors must be removed to ensure accurate calculation.

 

And the process of finding the parameter values of these internal factors is called camera calibration.


\begin{equation}A[R\mid t]{\begin{bmatrix}X\\Y\\Z\\1\end{bmatrix}}\end{equation}

 

- X,Y,Z : 3D coordinates in the world
- [R|t] : extrinsic parameter(Rotation matrix, Translation matrix)-related to the outer space, such as the height of the camera, the orientation(fan, tilt)
- A : intrinsic camera matrix-Internal parameters of the camera itself, such as the focal length, aspect ratio, and center point of the camera

- A[R|t] : camera matrix(projection matrix)


  • Camera intrinsic parameters

 

Focal length, Principal point, Skew coefficient.

 

f x s k e w c f x c x 0 f y c y 0 0 1
  • Focal length

 

Pinhole Camera Model


Pinhole Model


 

Distance between lens center and image sensor in pixels.


  • Principal point

 

Lens center point.

 

In the ideal case, Cx = width/2, Cy = height/2


 

Ideally, the main point (=lens center point) matches the image center point, but there are cases where it does not match due to various issues arising from the camera manufacturing process.


  • Skew coefficient

 

Inclined degree of y-axis.


  • Camera extrinsic parameters

 

Rotation, Translation

3D←→2D

 

These are not camera specific parameters, so they depend on where and in what direction the camera is installed and how the world coordinate system is defined.

 

https://intuitive-robotics.tistory.com/110

https://velog.io/@noogoolgga/Camera-model

https://darkpgmr.tistory.com/107

'Autonomous Vehicle > Video Geometry' 카테고리의 다른 글

Homography  (0) 2024.07.25
3D Transformations  (0) 2024.07.19
2D Transformations  (0) 2024.07.19
Coordinate System  (0) 2024.07.18
Epipolar Geometry  (0) 2023.09.11