skued.transform

skued.transform(matrix, array)

Applies a matrix transform on an array.

Parameters:
  • matrix (ndarray, shape {(3,3), (4,4)}) – Transformation matrix.

  • array (ndarray, shape {(3,), (3,3), (4,4)}) – Array to be transformed. Either a 1x3 vector, or a transformation matrix in 3x3 or 4x4 shape.

Returns:

transformed – Transformed array, either a 1D vector or a 4x4 transformation matrix

Return type:

ndarray

:raises ValueError : If the transformation matrix is neither 3x3 or 4x4: