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.NoIntrinsicis used.distortion (Optional[Transformation]) – The distortion transformation (2D to 2D). If None,
pysdic.NoDistortionis used.extrinsic (Optional[Transformation]) – The extrinsic transformation (world points to 2D). If None,
pysdic.NoExtrinsicis used with the input dimensionworld_dim.world_dim (int, optional (default:
3)) – The dimension of the world points (2 or 3), only used ifextrinsicis None.
- Returns:
The projection
ComposedTransformation([extrinsic, distortion, intrinsic]).- Return type: