Operators |
set_calib_data_calib_object — Define a calibration object in a calibration model.
set_calib_data_calib_object( : : CalibDataID, CalibObjIdx, CalibObjDescr : )
The operator set_calib_data_calib_object defines the calibration object with the index CalibObjIdx in the camera calibration data model CalibDataID. The index must be between 0 and NumCalibObjects-1 (NumCalibObjects is specified during model creation with create_calib_data and can be queried with get_calib_data).
If a calibration object description with index CalibObjIdx is already defined, then the current object description overwrites it (the description is 'substituted'). Note that all NumCalibObjects calibration objects must be set to perform calibrate_cameras.
The parameter CalibObjDescr can be used in two ways:
it specifies a calibration object description file. The supported format is defined with gen_caltab. Only the circles' center coordinates are used from this file similar to caltab_points.
it specifies the 3D coordinates of all points of the calibration object. All X, Y, and Z coordinates, respectively, of all points must be packed sequentially in the tuple in form: [X, Y, Z], i.e., [X1, ..., Xn, Y1, ..., Yn, Z1, ..., Zn], where |X| = |Y| = |Z| and all coordinates are in meters.
To query the calibration objects parameters stored earlier in a calibration data model, use get_calib_data.
A camera calibration data model CalibDataID cannot be shared between two or more user's threads. Different camera calibration data models can be used independently and safely in different threads.
Handle of a calibration data model.
Calibration object index.
Default value: 0
Suggested values: 0, 1, 2
3D point coordinates or a description file name.
Suggested values: 'caltab.descr' , 'caltab_10mm.descr' , 'caltab_30mm.descr' , 'caltab_100mm.descr' , 'caltab_200mm.descr'
create_calib_data, set_calib_data_cam_param
set_calib_data_cam_param, set_calib_data_observ_points, find_calib_object
Calibration
Operators |