HALCON Reference Manual 10.0.2
Table of Contents / 3D Matching / Shape-Based ClassesClassesClasses | | | Operators

trans_pose_shape_model_3dT_trans_pose_shape_model_3dtrans_pose_shape_model_3dTransPoseShapeModel3dTransPoseShapeModel3d (Operator)

Name

trans_pose_shape_model_3dT_trans_pose_shape_model_3dtrans_pose_shape_model_3dTransPoseShapeModel3dTransPoseShapeModel3d — Transform a pose that refers to the coordinate system of a 3D object model to a pose that refers to the reference coordinate system of a 3D shape model and vice versa.

Signature

trans_pose_shape_model_3d( : : ShapeModel3DID, PoseIn, Transformation : PoseOut)

Herror T_trans_pose_shape_model_3d(const Htuple ShapeModel3DID, const Htuple PoseIn, const Htuple Transformation, Htuple* PoseOut)

Herror trans_pose_shape_model_3d(const HTuple& ShapeModel3DID, const HTuple& PoseIn, const HTuple& Transformation, HTuple* PoseOut)

HTuple HShapeModel3D::TransPoseShapeModel3d(const HTuple& PoseIn, const HTuple& Transformation) const

void HOperatorSetX.TransPoseShapeModel3d(
[in] VARIANT ShapeModel3DID, [in] VARIANT PoseIn, [in] VARIANT Transformation, [out] VARIANT* PoseOut)

VARIANT HPoseX.TransPoseShapeModel3d(
[in] IHShapeModel3DX* ShapeModel3DID, [in] VARIANT PoseIn, [in] BSTR Transformation)

VARIANT HShapeModel3DX.TransPoseShapeModel3d(
[in] VARIANT PoseIn, [in] BSTR Transformation)

static void HOperatorSet.TransPoseShapeModel3d(HTuple shapeModel3DID, HTuple poseIn, HTuple transformation, out HTuple poseOut)

HPose HPose.TransPoseShapeModel3d(HShapeModel3D shapeModel3DID, string transformation)

HPose HShapeModel3D.TransPoseShapeModel3d(HPose poseIn, string transformation)

Description

The operator trans_pose_shape_model_3dtrans_pose_shape_model_3dtrans_pose_shape_model_3dTransPoseShapeModel3dTransPoseShapeModel3d transforms the pose PoseInPoseInPoseInPoseInposeIn into the pose PoseOutPoseOutPoseOutPoseOutposeOut by using the transformation direction specified in TransformationTransformationTransformationTransformationtransformation. In the majority of cases, the operator will be used to transform a camera pose that is given with respect to the source coordinate system to a camera pose that refers to the target coordinate system.

The pose can be transformed between two coordinate systems. The first coordinate system is the reference coordinate system of the 3D shape model that is passed in ShapeModel3DIDShapeModel3DIDShapeModel3DIDShapeModel3DIDshapeModel3DID. The origin of the reference coordinate system lies at the reference point of the underlying 3D object model. The orientation of the reference coordinate system is determined by the reference orientation that was specified when creating the 3D shape model with create_shape_model_3dcreate_shape_model_3dcreate_shape_model_3dCreateShapeModel3dCreateShapeModel3d.

The second coordinate system is the world coordinate system, i.e., the coordinate system of the 3D object model that underlies the 3D shape model. This coordinate system is implicitly determined by the coordinates that are stored in the CAD file that was read by using read_object_model_3dread_object_model_3dread_object_model_3dReadObjectModel3dReadObjectModel3d.

If TransformationTransformationTransformationTransformationtransformation is set to 'ref_to_model'"ref_to_model""ref_to_model""ref_to_model""ref_to_model", it is assumed that PoseInPoseInPoseInPoseInposeIn refers to the reference coordinate system of the 3D shape model. The resulting output pose PoseOutPoseOutPoseOutPoseOutposeOut in this case refers to the coordinate system of the 3D object model.

If TransformationTransformationTransformationTransformationtransformation is set to 'model_to_ref'"model_to_ref""model_to_ref""model_to_ref""model_to_ref", it is assumed that PoseInPoseInPoseInPoseInposeIn refers to the coordinate system of the 3D object model. The resulting output pose PoseOutPoseOutPoseOutPoseOutposeOut in this case refers to the reference coordinate system of the 3D shape model.

The relative pose of the two coordinate systems can be queried by passing 'reference_pose'"reference_pose""reference_pose""reference_pose""reference_pose" for GenParamNamesGenParamNamesGenParamNamesGenParamNamesgenParamNames in the operator get_shape_model_3d_paramsget_shape_model_3d_paramsget_shape_model_3d_paramsGetShapeModel3dParamsGetShapeModel3dParams.

Parallelization

Parameters

ShapeModel3DIDShapeModel3DIDShapeModel3DIDShapeModel3DIDshapeModel3DID (input_control)  shape_model_3d HShapeModel3D, HTupleHShapeModel3D, HTupleHShapeModel3DX, VARIANTHtuple (integer) (IntPtr) (Hlong) (Hlong) (Hlong)

Handle of the 3D shape model.

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

Pose to be transformed in the source system.

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

Direction of the transformation.

Default value: 'ref_to_model' "ref_to_model" "ref_to_model" "ref_to_model" "ref_to_model"

List of values: 'ref_to_model'"ref_to_model""ref_to_model""ref_to_model""ref_to_model", 'model_to_ref'"model_to_ref""model_to_ref""model_to_ref""model_to_ref"

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

Transformed 3D pose in the target system.

Result

If the parameters are valid, the operator trans_pose_shape_model_3dtrans_pose_shape_model_3dtrans_pose_shape_model_3dTransPoseShapeModel3dTransPoseShapeModel3d returns the value 2 (H_MSG_TRUE). If necessary an exception is raised.

Possible Predecessors

find_shape_model_3dfind_shape_model_3dfind_shape_model_3dFindShapeModel3dFindShapeModel3d

Alternatives

hom_mat3d_translatehom_mat3d_translatehom_mat3d_translateHomMat3dTranslateHomMat3dTranslate, hom_mat3d_rotatehom_mat3d_rotatehom_mat3d_rotateHomMat3dRotateHomMat3dRotate

Module

3D Metrology


Table of Contents / 3D Matching / Shape-Based ClassesClassesClasses | | | Operators
HALCON Reference Manual 10.0.2 Copyright © 1996-2011 MVTec Software GmbH