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
554caeff
"appendix-the-numpy-matrix" did not exist on "870c7ae87e4c1e9eaf720e9aeaf19b47a694a8c5"
Commit
554caeff
authored
5 years ago
by
Paul McCarthy
Browse files
Options
Downloads
Patches
Plain Diff
DOC: Minor tweaks
parent
84300e0c
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
fsl/data/image.py
+7
-0
7 additions, 0 deletions
fsl/data/image.py
fsl/transform/x5.py
+7
-6
7 additions, 6 deletions
fsl/transform/x5.py
with
14 additions
and
6 deletions
fsl/data/image.py
+
7
−
0
View file @
554caeff
...
...
@@ -329,6 +329,13 @@ class Nifti(notifier.Notifier, meta.Meta):
log
.
debug
(
'
FNIRT coefficient field detected - generating affine
'
)
# Knot spacing is stored in the pixdims
# (specified in terms of reference image
# voxels), and reference image pixdims
# are stored as intent code parameters.
# If we combine the two, we can at least
# get the shape/size of the coefficient
# field about right
knotpix
=
header
.
get_zooms
()[:
3
]
refpix
=
(
header
.
get
(
'
intent_p1
'
,
1
),
header
.
get
(
'
intent_p2
'
,
1
),
...
...
This diff is collapsed.
Click to expand it.
fsl/transform/x5.py
+
7
−
6
View file @
554caeff
...
...
@@ -175,17 +175,17 @@ or a *knot*.
Evaluating the spline functions at a particular location in the grid will
result in a relative displacement which can be a
ppli
ed to that location
'
s
result in a relative displacement which can be a
dd
ed to that location
'
s
reference image coordinates, in order to determine the corresponding source
image coordinates.
The shape of this coefficient grid is not necessarily the same as the shape of
the reference image grid. For this reason, some additional parameters are
stored in coefficient field files, in a sub-group called ``/Parameters``:
stored in coefficient field files, in a sub-group called ``/Parameters
/
``:
- The distance between control points, defined in terms of reference image
voxels
voxels
.
- An affine transformation which can be used to transform reference image
voxel coordinates into coefficient field voxel coordinates.
...
...
@@ -203,8 +203,9 @@ some other coordinate system.
Howewer, if the transformation does not transform between source and reference
image **world** coordinates, the ``/Pre`` and ``/Post`` affine transformations
must be provided.
image **world** coordinates, the ``/Pre/`` and ``/Post/`` affine
transformations must be provided.
The ``/Pre/`` affine transformation will be used to transform reference image
world coordinates into the reference image coordinate system required for use
...
...
@@ -257,7 +258,7 @@ File format specification
Non-linear X5 transformation files are assumed to adhere to the following
HDF5 structure:
HDF5 structure
. All fields are required unless otherwise noted
:
+---------------------+-----------+-------------------------------------------+
...
...
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