read_poseT_read_poseReadPoseReadPoseread_pose (Operator)

Name

read_poseT_read_poseReadPoseReadPoseread_pose — Lesen einer 3D-Lage (Pose) aus einer Textdatei.

Signatur

read_pose( : : PoseFile : Pose)

Herror T_read_pose(const Htuple PoseFile, Htuple* Pose)

void ReadPose(const HTuple& PoseFile, HTuple* Pose)

void HPose::ReadPose(const HString& PoseFile)

void HPose::ReadPose(const char* PoseFile)

void HPose::ReadPose(const wchar_t* PoseFile)   (Nur Windows)

static void HOperatorSet.ReadPose(HTuple poseFile, out HTuple pose)

void HPose.ReadPose(string poseFile)

def read_pose(pose_file: str) -> Sequence[Union[int, float]]

Beschreibung

read_poseread_poseReadPoseReadPoseReadPoseread_pose dient zum Einlesen einer 3D-Lage PosePosePosePoseposepose aus einer Textdatei mit dem Namen PoseFilePoseFilePoseFilePoseFileposeFilepose_file. Die Dateiendung für die 3D-Lage ist in HALCON 'dat'.

Eine 3D-Lage (Pose) beschreibt eine starre 3D-Transformation, d.h. eine Transformation bestehend aus einer beliebigen Translation und Rotation, mit 6 Parametern, drei für die Translation, drei für die Rotation. Mit Hilfe eines siebten Parameters kann zwischen verschiedenen Pose-Typen unterschieden werden (siehe create_posecreate_poseCreatePoseCreatePoseCreatePosecreate_pose).

Eine solche Datei kann durch den Operator write_posewrite_poseWritePoseWritePoseWritePosewrite_pose erzeugt werden und hat z.B. folgendes Aussehen: # 3D POSE PARAMETERS: rotation and translation # Used representation type: f 0 # Rotation angles [deg] or Rodriguez-vector: r -17.8134 1.83816 0.288092 # Translational vector (x y z [m]): t 0.280164 0.150644 1.7554

Ausführungsinformationen

Parameter

PoseFilePoseFilePoseFilePoseFileposeFilepose_file (input_control)  filename.read HTuplestrHTupleHtuple (string) (string) (HString) (char*)

Dateiname der Kameraparameterdatei.

Defaultwert: 'campose.dat' "campose.dat" "campose.dat" "campose.dat" "campose.dat" "campose.dat"

Wertevorschläge: 'campose.dat'"campose.dat""campose.dat""campose.dat""campose.dat""campose.dat", 'campose_initial.dat'"campose_initial.dat""campose_initial.dat""campose_initial.dat""campose_initial.dat""campose_initial.dat", 'campose_final.dat'"campose_final.dat""campose_final.dat""campose_final.dat""campose_final.dat""campose_final.dat"

Dateiendung: .dat

PosePosePosePoseposepose (output_control)  pose HPose, HTupleSequence[Union[int, float]]HTupleHtuple (real / integer) (double / int / long) (double / Hlong) (double / Hlong)

3D-Lage (Pose).

Parameteranzahl: 7

Ergebnis

Sind die Parameterwerte korrekt und konnte die Datei erfolgreich gelesen werden, dann liefert read_poseread_poseReadPoseReadPoseReadPoseread_pose den Wert TRUE. Gegebenenfalls wird eine Fehlerbehandlung durchgeführt.

Vorgänger

read_cam_parread_cam_parReadCamParReadCamParReadCamParread_cam_par

Nachfolger

pose_to_hom_mat3dpose_to_hom_mat3dPoseToHomMat3dPoseToHomMat3dPoseToHomMat3dpose_to_hom_mat3d, camera_calibrationcamera_calibrationCameraCalibrationCameraCalibrationCameraCalibrationcamera_calibration, disp_caltabdisp_caltabDispCaltabDispCaltabDispCaltabdisp_caltab, sim_caltabsim_caltabSimCaltabSimCaltabSimCaltabsim_caltab

Siehe auch

create_posecreate_poseCreatePoseCreatePoseCreatePosecreate_pose, find_marks_and_posefind_marks_and_poseFindMarksAndPoseFindMarksAndPoseFindMarksAndPosefind_marks_and_pose, camera_calibrationcamera_calibrationCameraCalibrationCameraCalibrationCameraCalibrationcamera_calibration, disp_caltabdisp_caltabDispCaltabDispCaltabDispCaltabdisp_caltab, sim_caltabsim_caltabSimCaltabSimCaltabSimCaltabsim_caltab, write_posewrite_poseWritePoseWritePoseWritePosewrite_pose, pose_to_hom_mat3dpose_to_hom_mat3dPoseToHomMat3dPoseToHomMat3dPoseToHomMat3dpose_to_hom_mat3d, hom_mat3d_to_posehom_mat3d_to_poseHomMat3dToPoseHomMat3dToPoseHomMat3dToPosehom_mat3d_to_pose

Modul

Foundation