pysdic.compose_projection#

compose_projection(intrinsic, distortion, extrinsic, *, world_dim=3)[source]#

Build the projection \(T\) from the world points to the image points as the composition of the extrinsic, distortion and intrinsic transformations:

\[T = \text{Intrinsic} \circ \text{Distortion} \circ \text{Extrinsic}\]

The parameters of the projection are the concatenation of the parameters of the extrinsic, distortion and intrinsic transformations (in this order).

Note

The transformations are not copied: modifying the parameters of the projection modifies the parameters of the transformations, and conversely.

Parameters:
  • intrinsic (Optional[Transformation]) – The intrinsic transformation (2D to 2D). If None, pysdic.NoIntrinsic is used.

  • distortion (Optional[Transformation]) – The distortion transformation (2D to 2D). If None, pysdic.NoDistortion is used.

  • extrinsic (Optional[Transformation]) – The extrinsic transformation (world points to 2D). If None, pysdic.NoExtrinsic is used with the input dimension world_dim.

  • world_dim (int, optional (default: 3)) – The dimension of the world points (2 or 3), only used if extrinsic is None.

Returns:

The projection ComposedTransformation([extrinsic, distortion, intrinsic]).

Return type:

pysdic.ComposedTransformation