cam_mat_to_cam_par — 根据相机矩阵计算内部相机参数。
cam_mat_to_cam_par( : : CameraMatrix, Kappa, ImageWidth, ImageHeight : CameraParam)
cam_mat_to_cam_par computes internal camera parameters from
the camera matrix CameraMatrix, the radial distortion
coefficient Kappa, the image width ImageWidth, and
the image height ImageHeight. The camera parameters are
returned in CameraParam. The parameters CameraMatrix
and Kappa can be determined with
stationary_camera_self_calibration。cam_mat_to_cam_par converts this representation of the
internal camera parameters into the representation used by
camera_calibration。The conversion can only be performed if
the skew of the image axes is set to 0 in
stationary_camera_self_calibration, i.e., if the parameter
'skew' is not being determined.
CameraMatrix (输入控制) hom_mat2d → (real)
3x3 projective camera matrix that determines the internal camera parameters.
Kappa (输入控制) number → (real)
Kappa.
ImageWidth (输入控制) extent.x → (integer)
Width of the images that correspond to
CameraMatrix。
限制:
ImageWidth > 0
ImageHeight (输入控制) extent.y → (integer)
Height of the images that correspond to
CameraMatrix。
限制:
ImageHeight > 0
CameraParam (输出控制) campar → (real / integer / string)
Internal camera parameters.
* For the input data to stationary_camera_self_calibration, please
* refer to the example for stationary_camera_self_calibration.
stationary_camera_self_calibration (4, 640, 480, 1, From, To, \
HomMatrices2D, Rows1, Cols1, \
Rows2, Cols2, NumMatches, \
'gold_standard', \
['focus','principal_point','kappa'], \
'true', CameraMatrix, Kappa, \
RotationMatrices, X, Y, Z, Error)
cam_mat_to_cam_par (CameraMatrix, Kappa, 640, 480, CameraParam)
如果参数有效,算子
cam_mat_to_cam_par 返回值 2 ( H_MSG_TRUE )。如有必要,则抛出异常。
stationary_camera_self_calibration
camera_calibration,
cam_par_to_cam_mat
标定