nibabel.affines

Utility routines for working with points and affine transforms

Functions

append_diag(aff, steps[, starts])

Add diagonal elements steps and translations starts to affine

apply_affine(aff, pts)

Apply affine matrix aff to points pts

dot_reduce(*args)

Apply numpy dot product function from right to left on arrays

from_matvec(matrix[, vector])

Combine a matrix and vector into an homogeneous affine

obliquity(affine)

Estimate the obliquity an affine's axes represent.

rescale_affine(affine, shape, zooms[, new_shape])

Return a new affine matrix with updated voxel sizes (zooms)

to_matvec(transform)

Split a transform into its matrix and vector components.

voxel_sizes(affine)

Return voxel size for each input axis given affine

Exceptions

AffineError

Errors in calculating or using affines