warp
voxel.warp.compose_transforms(*transforms) -> vx.AffineMatrix | Warp
¶
Merge a sequence of transforms into a single equivalent transform, where the argument order is the order in which the transforms are applied to a volume. Affine matrices are assumed to be world-space transforms. Points that a warp maps beyond the extent of a preceding warp see zero displacement from it.
Parameters:
-
*transforms(AffineMatrix or Warp, default:()) –Transforms to merge.
Returns:
-
AffineMatrix or Warp–The merged transform, an affine matrix when all inputs are affine and a warp otherwise.