HALCON Reference Manual 10.0.2
Table of Contents / Transformations / Poses ClassesClassesClasses | | | Operators

proj_hom_mat2d_to_poseT_proj_hom_mat2d_to_poseproj_hom_mat2d_to_poseProjHomMat2dToPoseProjHomMat2dToPose (Operator)

Name

proj_hom_mat2d_to_poseT_proj_hom_mat2d_to_poseproj_hom_mat2d_to_poseProjHomMat2dToPoseProjHomMat2dToPose — Computation of a pose by using a homography from world coordinates to image coordinates.

Signature

proj_hom_mat2d_to_pose( : : Homography, CameraMatrix, Method : Pose)

Herror T_proj_hom_mat2d_to_pose(const Htuple Homography, const Htuple CameraMatrix, const Htuple Method, Htuple* Pose)

Herror proj_hom_mat2d_to_pose(const HTuple& Homography, const HTuple& CameraMatrix, const HTuple& Method, HTuple* Pose)

void HOperatorSetX.ProjHomMat2dToPose(
[in] VARIANT Homography, [in] VARIANT CameraMatrix, [in] VARIANT Method, [out] VARIANT* Pose)

VARIANT HImageX.ProjHomMat2dToPose(
[in] IHHomMat2DX* Homography, [in] IHHomMat2DX* CameraMatrix, [in] BSTR Method)

static void HOperatorSet.ProjHomMat2dToPose(HTuple homography, HTuple cameraMatrix, HTuple method, out HTuple pose)

static HPose HImage.ProjHomMat2dToPose(HHomMat2D homography, HHomMat2D cameraMatrix, string method)

Description

proj_hom_mat2d_to_poseproj_hom_mat2d_to_poseproj_hom_mat2d_to_poseProjHomMat2dToPoseProjHomMat2dToPose computes a pose out of a homography HomographyHomographyHomographyHomographyhomography that describes the relation between 2D world- (unit meters) and 2D image coordinates. The homography can be obtained by the use of vector_to_proj_hom_mat2dvector_to_proj_hom_mat2dvector_to_proj_hom_mat2dVectorToProjHomMat2dVectorToProjHomMat2d. To compute a pose, a camera matrix (obtained by cam_par_to_cam_matcam_par_to_cam_matcam_par_to_cam_matCamParToCamMatCamParToCamMat, for example) has to be passed in CameraMatrixCameraMatrixCameraMatrixCameraMatrixcameraMatrix. By setting the Parameter MethodMethodMethodMethodmethod, it is possible to choose which computation algorithm is used. Currently a direct decomposition (MethodMethodMethodMethodmethod = 'decomposition') and a singular value decomposition based method (MethodMethodMethodMethodmethod = 'decomposition_svd') are supported. In general due to numeric reasons, the direct decomposition method returns more stable results.

The subsequent calls of vector_to_proj_hom_mat2dvector_to_proj_hom_mat2dvector_to_proj_hom_mat2dVectorToProjHomMat2dVectorToProjHomMat2d and proj_hom_mat2d_to_poseproj_hom_mat2d_to_poseproj_hom_mat2d_to_poseProjHomMat2dToPoseProjHomMat2dToPose are similar to vector_to_posevector_to_posevector_to_poseVectorToPoseVectorToPose for 2D objects, whereas no refinement due to redundance is possible.

Parallelization

Parameters

HomographyHomographyHomographyHomographyhomography (input_control)  hom_mat2d-array HHomMat2D, HTupleHTupleHHomMat2DX, VARIANTHtuple (real) (double) (double) (double) (double)

The homography from world- to image coordinates.

CameraMatrixCameraMatrixCameraMatrixCameraMatrixcameraMatrix (input_control)  hom_mat2d-array HHomMat2D, HTupleHTupleHHomMat2DX, VARIANTHtuple (real) (double) (double) (double) (double)

The camera calibration matrix K.

MethodMethodMethodMethodmethod (input_control)  string HTupleHTupleVARIANTHtuple (string) (string) (char*) (BSTR) (char*)

Type of pose computation.

Default value: 'decomposition' "decomposition" "decomposition" "decomposition" "decomposition"

List of values: 'decomposition'"decomposition""decomposition""decomposition""decomposition", 'decomposition_svd'"decomposition_svd""decomposition_svd""decomposition_svd""decomposition_svd"

PosePosePosePosepose (output_control)  pose-array HPose, HTupleHTupleHPoseX, VARIANTHtuple (real / integer) (double / int / long) (double / Hlong) (double / Hlong) (double / Hlong)

Pose of the 2D object.

Result

proj_hom_mat2d_to_poseproj_hom_mat2d_to_poseproj_hom_mat2d_to_poseProjHomMat2dToPoseProjHomMat2dToPose returns 2 (H_MSG_TRUE) if all parameter values are correct.

Possible Predecessors

image_points_to_world_planeimage_points_to_world_planeimage_points_to_world_planeImagePointsToWorldPlaneImagePointsToWorldPlane, vector_to_proj_hom_mat2dvector_to_proj_hom_mat2dvector_to_proj_hom_mat2dVectorToProjHomMat2dVectorToProjHomMat2d

See also

vector_to_proj_hom_mat2dvector_to_proj_hom_mat2dvector_to_proj_hom_mat2dVectorToProjHomMat2dVectorToProjHomMat2d, image_points_to_world_planeimage_points_to_world_planeimage_points_to_world_planeImagePointsToWorldPlaneImagePointsToWorldPlane, vector_to_posevector_to_posevector_to_poseVectorToPoseVectorToPose, camera_calibrationcamera_calibrationcamera_calibrationCameraCalibrationCameraCalibration

Module

Calibration


Table of Contents / Transformations / Poses ClassesClassesClasses | | | Operators
HALCON Reference Manual 10.0.2 Copyright © 1996-2011 MVTec Software GmbH