Operator Reference
proj_hom_mat2d_to_pose (Operator)
proj_hom_mat2d_to_pose
— Compute a pose out of a homography describing the relation between world
and image coordinates.
Signature
proj_hom_mat2d_to_pose( : : Homography, CameraMatrix, Method : Pose)
Description
proj_hom_mat2d_to_pose
computes a pose out of a homography
Homography
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_mat2d
. To compute
a pose, a camera matrix (obtained by cam_par_to_cam_mat
, for
example) has to be passed in CameraMatrix
. By setting the
Parameter Method
, it is possible to choose which
computation algorithm is used. Currently a direct decomposition
(Method
= 'decomposition') and a singular value
decomposition based method (Method
= '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_mat2d
and
proj_hom_mat2d_to_pose
are similar to vector_to_pose
for 2D objects, whereas no refinement due to redundancy is
possible.
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
Homography
(input_control) hom_mat2d →
(real)
The homography from world- to image coordinates.
CameraMatrix
(input_control) hom_mat2d →
(real)
The camera calibration matrix K.
Method
(input_control) string →
(string)
Type of pose computation.
Default: 'decomposition'
List of values: 'decomposition' , 'decomposition_svd'
Pose
(output_control) pose →
(real / integer)
Pose of the 2D object.
Result
proj_hom_mat2d_to_pose
returns 2 (
H_MSG_TRUE)
if all parameter values
are correct.
Possible Predecessors
image_points_to_world_plane
,
vector_to_proj_hom_mat2d
See also
vector_to_proj_hom_mat2d
,
image_points_to_world_plane
,
vector_to_pose
,
camera_calibration
Module
Calibration