Skip to content
Snippets Groups Projects
Commit 8db0b2a3 authored by Paul McCarthy's avatar Paul McCarthy
Browse files

Documentation fix to Nifti.getOrientation - I had it backwards, because I was

using transposed xforms!
parent 66e1b06c
No related branches found
No related tags found
No related merge requests found
...@@ -501,13 +501,18 @@ class Nifti(notifier.Notifier): ...@@ -501,13 +501,18 @@ class Nifti(notifier.Notifier):
def getOrientation(self, axis, xform): def getOrientation(self, axis, xform):
"""Returns a code representing the orientation of the specified data """Returns a code representing the orientation of the specified
axis in the coordinate system defined by the given transformation axis in the input coordinate system of the given transformation
matrix. matrix.
:arg xform: A transformation matrix which is assumed to transform :arg xform: A transformation matrix which is assumed to transform
coordinates from the image world coordinate system to coordinates from some coordinate system (the one
some other coordinate system. which you want an orientation for) into the image
world coordinate system.
For example, if you pass in the voxel-to-world
transformation matrix, you will get an orientation
for axes in the voxel coordinate system.
This method returns one of the following values, indicating the This method returns one of the following values, indicating the
direction in which coordinates along the specified axis increase: direction in which coordinates along the specified axis increase:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment