pysdic.WorldPlanePerspectiveExtrinsic.rotation_matrix#

property WorldPlanePerspectiveExtrinsic.rotation_matrix: ndarray | None#

[Get/Set] the rotation matrix \(R\) of the extrinsic transformation.

The rotation matrix is a numpy array of shape (3, 3) computed from the rotation vector with cv2.Rodrigues.

Note

An alias for rotation_matrix is rmat to match OpenCV conventions.

Note

The rotation matrix can only be set if all the parameters are already set.

Parameters:

rmat (ArrayLike) – The rotation matrix of the camera with shape (3, 3). It must be orthonormal with a determinant equal to +1.

Returns:

The rotation matrix of the camera with shape (3, 3). (or None if the parameters are not set)

Return type:

Optional[numpy.ndarray]