batch_transform

lib.align.aligned_utils.batch_transform(matrices: npt.NDArray[np.float32], points: npt.NDArray[np.float32], in_place: bool = False) npt.NDArray[np.float32]

Batch transform an array of (N, M, 2) points by the given (N, 3, 3) affine matrices

Parameters:
  • matrices (npt.NDArray[np.float32]) – The matrices to use to transform the points

  • points (npt.NDArray[np.float32]) – The points to be transformed

  • in_place (bool) – True to directly transform the given points in place. False to return a new array

Return type:

The transformed points