pysdic.SDICAnalysis.set_transformation_parameters#

SDICAnalysis.set_transformation_parameters(kind, index, parameters)[source]#

Set the parameters of a transformation of the cameras (see get_transformation()).

The transformation is shared by all the cameras that use it: their projections change together. The checks and the lock of the transformation are respected (for example, the transformation used inside a pysdic.ReparametrizedTransformation is locked: set the parameters of the reparametrized transformation instead).

Parameters:
  • kind (str) – The kind of the transformation: "extrinsic", "distortion" or "intrinsic".

  • index (Integral) – The index of the transformation in the structure of kind.

  • parameters (Optional[ArrayLike]) – The parameters, of shape \((n_p,)\) (copied), or None to unset them.

Raises:
  • ValueError – If kind is not valid or the parameters are invalid for the transformation.

  • IndexError – If index is out of range.

  • RuntimeError – If the transformation is locked (see its locked_message).

Return type:

None