Read the external camera parameters from text file.
read_cam_pose is used to read the external camera parameters CamPose from a text file with the name CamPoseFile.
The first three values in CamPose describe the 3D translation vector (in meter), the next three values represent the three rotation angles. The last value in CamPose encodes the representation type of the described 3D transform: Hereby the value 0 says, that the 3D rotation is performed before the 3D translation, that the three rotations are specified as angles (in degree), and that the rotation order is Gamma-Beta-Alpha, i.e., the first rotation is around the Z-axis, the second one around the new Y-axis, and the third one around the new X-axis. Other representation types for the 3D transform are not supported yet.
A suitable file can be generated by the operator write_cam_pose and looks like the following:
# EXTERNAL CAMERA 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
CamPoseFile (input_control) |
string -> string |
File name of the external camera parameters. | |
Default value: 'campose.dat' | |
List of values: 'campose.dat', 'campose.initial', 'campose.final' |
CamPose (output_control) |
number-array -> real / integer |
External camera parameters. | |
Number of elements: 7 |
/* get pose (external camera parameters): */ read_cam_pose(::'campose.dat':CamPose).
read_cam_pose returns TRUE if all parameter values are correct and the file has been read successfully. If necessary an exception is raised.
pose_to_hom_mat, camera_calibration, disp_caltab, sim_caltab
find_marks_and_pose, camera_calibration, disp_caltab, sim_caltab, write_cam_pose, pose_to_hom_mat, hom_mat_to_pose