scipp.spatial.affine_transform#

scipp.spatial.affine_transform(*, unit=Unit(1), value)#

Initializes a single affine transformation from the provided affine matrix coefficients.

Parameters:
  • unit (Unit | str, default: Unit(1)) – The unit of the affine transformation’s translation component.

  • value (ndarray[Any, dtype[TypeVar(_Float, bound= float64 | float32, covariant=True)]] | Sequence[TypeVar(_Float, bound= float64 | float32, covariant=True)]) – A 4x4 matrix of affine coefficients.

Returns:

Variable – A scalar variable of dtype affine_transform3.