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() and display_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:

pysdic.Transformation

Raises:

Examples

analysis.display_structure("extrinsic")
# Frame 0  : [0, 1]
# Frame 1  : [0, 1]
right_extrinsic = analysis.get_transformation("extrinsic", 1)