cam_par_to_cam_mat — 根据内部相机参数计算相机矩阵。
cam_par_to_cam_mat( : : CameraParam : CameraMatrix, ImageWidth, ImageHeight)
cam_par_to_cam_mat computes the camera matrix
CameraMatrix as well as the image width
ImageWidth, and the image height ImageHeight from
the internal camera parameters CameraParam. The internal
camera parameters CameraParam can be determined with
camera_calibration。cam_par_to_cam_mat converts
this representation of the internal camera parameters into the
representation used by stationary_camera_self_calibration。The conversion can only be performed if the camera is an area scan
pinhole camera and the distortion coefficients in
CameraParam are 0. If necessary,
change_radial_distortion_cam_par must be used to set the
distortion coefficients to 0.
CameraParam (输入控制) campar → (real / integer / string)
Internal camera parameters.
CameraMatrix (输出控制) hom_mat2d → (real)
3x3 projective camera matrix
that corresponds to CameraParam。
ImageWidth (输出控制) extent.x → (integer)
Width of the images that correspond to
CameraMatrix。
Assertion:
ImageWidth > 0
ImageHeight (输出控制) extent.y → (integer)
Height of the images that correspond to
CameraMatrix。
Assertion:
ImageHeight > 0
* For the input data to calibrate_cameras, please refer to the
* example for calibrate_cameras.
calibrate_cameras (CalibDataID, Error)
get_calib_data (CalibDataID, 'camera', 0, 'params', CameraParam)
cam_par_to_cam_mat (CameraParam, CameraMatrix, ImageWidth, ImageHeight)
* Alternatively, the following calls can be used.
change_radial_distortion_cam_par ('adaptive', CameraParam, 0, CamParamOut)
cam_par_to_cam_mat (CamParamOut, CameraMatrix, ImageWidth, ImageHeight)
如果参数有效,算子
cam_par_to_cam_mat 返回值 2 ( H_MSG_TRUE )。如有必要,则抛出异常。
stationary_camera_self_calibration,
cam_mat_to_cam_par
标定