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[tuple[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 dtypeaffine_transform3.