diff --git a/nitransforms/manip.py b/nitransforms/manip.py index 95090007..5db88fb2 100644 --- a/nitransforms/manip.py +++ b/nitransforms/manip.py @@ -156,6 +156,16 @@ def asaffine(self, indices=None): [0., 0., 1., 0.], [0., 0., 0., 1.]]) + >>> chain = TransformChain(transforms=[ + ... Affine.from_matvec(vec=(1, 2, 3)), + ... Affine.from_matvec(mat=[[0, 1, 0], [0, 0, 1], [1, 0, 0]]), + ... ]) + >>> chain.asaffine() + array([[0., 1., 0., 2.], + [0., 0., 1., 3.], + [1., 0., 0., 1.], + [0., 0., 0., 1.]]) + Parameters ---------- indices : :obj:`numpy.array_like`