DERS5.1/VSRS3.5--相机参数说明

本文深入探讨了相机参数的定义、表示方法及其在不同视图中的应用,并提供了实例文件来展示如何具体指定这些参数。重点阐述了旋转矩阵、平移向量、内部矩阵以及它们在坐标系中的作用,同时解释了焦距、径向畸变系数、主点等关键参数的意义。通过实例展示了如何用特定格式来编写相机参数文件。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

Specification of Camera Parameters

Camera parameters shall be specified as

 rotation matrixR,      // 旋转矩阵/外部矩阵(外部参数)R

translation vectort,  // 平移向量 t

intrinsic matrixA for each camera i. // 内部矩阵(内部参数)A

Values shall be given in floating point precision as accurate as possible.

 

The extrinsic camera parametersR and tshall be specified according to aright-handed coordinate system.

The upper left corner of an image shall be the origin for corresponding image/camera coordinates, i.e., the (0,0) coordinate, with all other corners of the image having non-negative coordinates.

 

The rotation matrix R(i) for i-th camera is represented as follows.

r_11[i]

r_12[i]

r_13[i]

r_21[i]

r_22[i]

r_23[i]

r_31[i]

r_32[i]

r_33[i]

 

 

 

 

The translation vectort(i) for i-th camera is represented as follows:

t_1[i]

t_2[i]

t_3[i]

 

 

 

 

The rotation matrixR and the translation vectort define the position and orientation of the corresponding camera with respect to the world coordinate system. The components of the rotation matrix R are function of the rotationsabout the three coordinate axes.

The intrinsic matrixA(i) for i-th camera is represented as follows:

focal_length_x[i]

radial_distortion[i]

principal_point_x[i]

0.0

focal_length_y[i]

principal_point_y[i]

0.0

0.0

1.0

 

 

 

 

focal_length_x[i] specifies the focal length of the i-th camerain the horizontal direction units of pixels. //像素点单元

focal_length_y[i] specifies the focal length of the i-th camerain the vertical direction in units of pixels.  // 像素点单元

principal_point_x[i] specifies theprincipal point(中心) of the i-th camerain the horizontal direction units of pixels. // 像素点单元

principal_point_y[i] specifies theprincipal point(中心) of the i-th camerain the vertical direction in units of pixels. // 像素点单元

radial_distortion[i] specifies theradial distortion coefficient(径向畸变系数) of the i-th camera.

  • Radial distortion coefficients are estimated up to first order
  • Radial distortion centre is the same as the principal point.
  • Tangential distortion coefficients(切向畸变系数) have not been estimated, they are to be assumed zero.

 

Example 9: Example camera parameter file

‘camera name of the 0th view’

focal_length_x[0] radial_distortion[0] principal_point_x[0]

0.0                          focal_length_y[0]    principal_point_y[0]

0.0                          0.0                            1.0

0.0

0.0

r_11[0]                    r_12[0]                          r_13[0]               t_1[0]

r_21[0]                    r_22[0]                          r_23[0]               t_2[0]

r_31[0]                    r_32[0]                          r_33[0]               t_3[0]

 

‘camera name of the 1sr view’

focal_length_x[1] radial_distortion[1] principal_point_x[1]

0.0                          focal_length_y[1]    principal_point_y[1]

0.0                          0.0                            1.0

0.0

0.0

r_11[1]                    r_12[1]                          r_13[1]               t_1[1]

r_21[1]                    r_22[1]                          r_23[1]               t_2[1]

r_31[1]                    r_32[1]                          r_33[1]               t_3[1]

 

‘camera name of the 2nd view’

focal_length_x[2] radial_distortion[2] principal_point_x[2]

0.0                          focal_length_y[2]    principal_point_y[2]

0.0                          0.0                            1.0

0.0

0.0

r_11[2]                    r_12[2]                          r_13[2]               t_1[2]

r_21[2]                    r_22[2]                          r_23[2]               t_2[2]

r_31[2]                    r_32[2]                          r_33[2]               t_3[2]

Example 10: Example camera parameter file “cam_param_dog.txt”

param_dog37

2979.0           0.0         -170.905600

0.0         2979.0          452.7121

0.0         0.0        1.0

0.0

0.0

1.0         0.0        0.0         -125.0

0.0         1.0        0.0         0.0

0.0         0.0        1.0         0.0

 

param_dog38

2979.0           0.0         -152.788800

0.0         2979.0          452.7121

0.0         0.0        1.0

0.0

0.0

1.0         0.0        0.0         -75.0

0.0         1.0        0.0         0.0

0.0         0.0        1.0         0.0

 

param_dog39

2979.0           0.0         -134.672000

0.0         2979.0          452.7121

0.0         0.0        1.0

0.0

0.0

1.0         0.0        0.0         -25.0

0.0         1.0        0.0         0.0

0.0         0.0        1.0         0.0

 

param_dog40

2979.0           0.0         -116.555200

0.0         2979.0          452.7121

0.0         0.0        1.0

0.0

0.0

1.0         0.0        0.0         25.0

0.0         1.0        0.0         0.0

0.0         0.0        1.0         0.0

 

param_dog41

2979.0           0.0         -98.438400

0.0         2979.0          452.7121

0.0         0.0        1.0

0.0

0.0

1.0         0.0        0.0         75.0

0.0         1.0        0.0         0.0

0.0         0.0        1.0         0.0

 

param_dog42

2979.0           0.0         -80.321600

0.0         2979.0          452.7121

0.0         0.0        1.0

0.0

0.0

1.0         0.0        0.0         125.0

0.0         1.0        0.0         0.0

0.0         0.0        1.0         0.0

 

param_dog43

2979.0           0.0         -62.204800

0.0         2979.0          452.7121

0.0         0.0        1.0

0.0

0.0

1.0         0.0        0.0         175.0

0.0         1.0        0.0         0.0

0.0         0.0        1.0         0.0

 

param_dog44

2979.0           0.0         -44.088000

0.0         2979.0          452.7121

0.0         0.0        1.0

0.0

0.0

1.0         0.0        0.0         225.0

0.0         1.0        0.0         0.0

0.0         0.0        1.0         0.0

 

param_dog45

2979.0           0.0         -25.971200

0.0         2979.0          452.7121

0.0         0.0        1.0

0.0

0.0

1.0         0.0        0.0         275.0

0.0         1.0        0.0         0.0

0.0         0.0        1.0         0.0

 

param_dog46

2979.0           0.0         -7.854400

0.0         2979.0          452.7121

0.0         0.0        1.0

0.0

0.0

1.0         0.0        0.0         325.0

0.0         1.0        0.0         0.0

0.0         0.0        1.0         0.0

 

param_dog47

2979.0           0.0         10.262400

0.0         2979.0          452.7121

0.0         0.0        1.0

0.0

0.0

1.0         0.0        0.0         375.0

0.0         1.0        0.0         0.0

0.0         0.0        1.0         0.0

 

param_dog48

2979.0           0.0         28.379200

0.0         2979.0          452.7121

0.0         0.0        1.0

0.0

0.0

1.0         0.0        0.0         425.0

0.0         1.0        0.0         0.0

0.0         0.0        1.0         0.0

 

param_dog49

2979.0           0.0         46.496000

0.0         2979.0          452.7121

0.0         0.0        1.0

0.0

0.0

1.0         0.0        0.0         475.0

0.0         1.0        0.0         0.0

0.0         0.0        1.0         0.0

 

param_dog50

2979.0           0.0         64.612800

0.0         2979.0          452.7121

0.0         0.0        1.0

0.0

0.0

1.0         0.0        0.0         525.0

0.0         1.0        0.0         0.0

0.0         0.0        1.0         0.0

评论 11
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

Digital2Slave

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值