Skip to content

cam_par_pose_to_hom_mat3dcam_par_pose_to_hom_mat3dCamParPoseToHomMat3dCamParPoseToHomMat3dcam_par_pose_to_hom_mat3dT_cam_par_pose_to_hom_mat3d🔗

Short description🔗

cam_par_pose_to_hom_mat3dcam_par_pose_to_hom_mat3dCamParPoseToHomMat3dCamParPoseToHomMat3dcam_par_pose_to_hom_mat3dT_cam_par_pose_to_hom_mat3d — Convert internal camera parameters and a 3D pose into a 3×4 projection matrix.

Signature🔗

cam_par_pose_to_hom_mat3d( campar CameraParam, pose Pose, out hom_mat3d HomMat3D )cam_par_pose_to_hom_mat3d( : : CameraParam, Pose : HomMat3D )void CamParPoseToHomMat3d( const HTuple& CameraParam, const HTuple& Pose, HTuple* HomMat3D )static void HOperatorSet.CamParPoseToHomMat3d( HTuple cameraParam, HTuple pose, out HTuple homMat3D )def cam_par_pose_to_hom_mat3d( camera_param: Sequence[Union[int, float, str]], pose: Sequence[Union[int, float]] ) -> Sequence[float]

Herror T_cam_par_pose_to_hom_mat3d( const Htuple CameraParam, const Htuple Pose, Htuple* HomMat3D )

HHomMat3D HCamPar::CamParPoseToHomMat3d( const HPose& Pose ) const

HHomMat3D HPose::CamParPoseToHomMat3d( const HCamPar& CameraParam ) const

HHomMat3D HCamPar.CamParPoseToHomMat3d( HPose pose )

HHomMat3D HPose.CamParPoseToHomMat3d( HCamPar cameraParam )

Description🔗

cam_par_pose_to_hom_mat3dCamParPoseToHomMat3d converts the internal camera parameters CameraParamcameraParamcamera_param and the 3D pose Poseposepose, which represent the external camera parameters, into the 3×4 projection matrix HomMat3DhomMat3Dhom_mat_3d, which can be used to project points from 3D to 2D. The conversion can only be performed if the distortion coefficients in CameraParamcameraParamcamera_param are 0. If necessary, change_radial_distortion_cam_parChangeRadialDistortionCamPar must be used to achieve this. The internal camera parameters and the pose are typically obtained with calibrate_camerasCalibrateCameras.

Execution information🔗

Execution information
  • Multithreading type: reentrant (runs in parallel with non-exclusive operators).

  • Multithreading scope: global (may be called from any thread).

  • Processed without parallelization.

Parameters🔗

CameraParamcameraParamcamera_param (input_control) campar → (real / integer / string)(real / integer / string)HTuple (double / Hlong / HString)HCamPar, HTuple (double / int / long / string)Sequence[Union[int, float, str]]Htuple (double / Hlong / char*)

Internal camera parameters.

Poseposepose (input_control) pose → (real / integer)(real / integer)HTuple (double / Hlong)HPose, HTuple (double / int / long)Sequence[Union[int, float]]Htuple (double / Hlong)

3D pose.

Number of elements: 7

HomMat3DhomMat3Dhom_mat_3d (output_control) hom_mat3d → (real)(real)HTuple (double)HHomMat3D, HTuple (double)Sequence[float]Htuple (double)

3×4 projection matrix.

Result🔗

cam_par_pose_to_hom_mat3dCamParPoseToHomMat3d returns 2 (H_MSG_TRUE) if all parameter values are correct. If necessary, an exception is raised

Combinations with other operators🔗

Combinations

Possible predecessors

calibrate_camerasCalibrateCameras, change_radial_distortion_cam_parChangeRadialDistortionCamPar

Possible successors

project_point_hom_mat3dProjectPointHomMat3d, project_hom_point_hom_mat3dProjectHomPointHomMat3d

See also

create_poseCreatePose, hom_mat3d_to_poseHomMat3dToPose, project_3d_pointProject3dPoint, get_line_of_sightGetLineOfSight

Module🔗

Foundation