cam_par_to_cam_mat — Compute a camera matrix from internal camera parameters.
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.
Internal camera parameters.
Number of elements: CameraParam == 8 || CameraParam == 12
3x3 projective camera matrix that corresponds to CameraParam.
Width of the images that correspond to CameraMatrix.
Assertion: ImageWidth > 0
Height of the images that correspond to CameraMatrix.
Assertion: ImageHeight > 0
* For the input data to camera_calibration, please refer to the * example for camera_calibration. camera_calibration (X, Y, Z, Rows, Cols, StartCamParam, StartPoses, \ ['all','~kappa'], CameraParam, FinalPoses, Errors) cam_par_to_cam_mat (CameraParam, CameraMatrix, ImageWidth, ImageHeight) * Alternatively, the following calls can be used. camera_calibration (X, Y, Z, Rows, Cols, StartCamParam, StartPoses, \ 'all', CameraParam, FinalPoses, Errors) change_radial_distortion_cam_par ('adaptive', CameraParam, 0, CamParamOut) cam_par_to_cam_mat (CamParamOut, CameraMatrix, ImageWidth, ImageHeight)
If the parameters are valid, the operator cam_par_to_cam_mat returns the value 2 (H_MSG_TRUE). If necessary an exception is raised.