Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
fslpy
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Evan Edmond
fslpy
Commits
8db0b2a3
Commit
8db0b2a3
authored
8 years ago
by
Paul McCarthy
Browse files
Options
Downloads
Patches
Plain Diff
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
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
fsl/data/image.py
+9
-4
9 additions, 4 deletions
fsl/data/image.py
with
9 additions
and
4 deletions
fsl/data/image.py
+
9
−
4
View file @
8db0b2a3
...
@@ -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:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment