nibabel.orientations

Utilities for calculating and applying affine orientations

Functions

aff2axcodes(aff[, labels, tol])

axis direction codes for affine aff

apply_orientation(arr, ornt)

Apply transformations implied by ornt to the first n axes of the array arr

axcodes2ornt(axcodes[, labels])

Convert axis codes axcodes to an orientation

flip_axis(arr[, axis])

Flip contents of axis in array arr

inv_ornt_aff(ornt, shape)

Affine transform reversing transforms implied in ornt

io_orientation(affine[, tol])

Orientation of input axes in terms of output axes for affine

orientation_affine(ornt, shape)

orientation_affine deprecated.

ornt2axcodes(ornt[, labels])

Convert orientation ornt to labels for axis directions

ornt_transform(start_ornt, end_ornt)

Return the orientation that transforms from start_ornt to end_ornt.

Exceptions

OrientationError