pysdic.SDICAnalysis.get_transformation#
- SDICAnalysis.get_transformation(kind, index)[source]#
Get a transformation of the cameras of the analysis by its index in the structure of its kind (see
compute_structure()anddisplay_structure()).The indices are numbered separately for each kind:
("extrinsic", 0)and("distortion", 0)are two different transformations.- Parameters:
kind (str) – The kind of the transformation:
"extrinsic","distortion"or"intrinsic".index (Integral) – The index of the transformation in the structure of
kind.
- Returns:
The transformation (not a copy: it is shared by the cameras that use it).
- Return type:
- Raises:
ValueError – If
kindis not valid.IndexError – If
indexis out of range.
Examples
analysis.display_structure("extrinsic") # Frame 0 : [0, 1] # Frame 1 : [0, 1] right_extrinsic = analysis.get_transformation("extrinsic", 1)