Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
fslpy
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor 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
Michiel Cottaar
fslpy
Commits
6fb27740
Commit
6fb27740
authored
7 years ago
by
Paul McCarthy
Browse files
Options
Downloads
Patches
Plain Diff
Doc fixes
parent
7ffb8498
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
doc/fsl.utils.weakfuncref.rst
+9
-0
9 additions, 0 deletions
doc/fsl.utils.weakfuncref.rst
fsl/data/mesh.py
+1
-1
1 addition, 1 deletion
fsl/data/mesh.py
fsl/utils/transform.py
+8
-8
8 additions, 8 deletions
fsl/utils/transform.py
with
18 additions
and
9 deletions
doc/fsl.utils.weakfuncref.rst
0 → 100644
+
9
−
0
View file @
6fb27740
:orphan:
fsl.utils.weakfuncref module
============================
.. automodule:: fsl.utils.weakfuncref
:members:
:undoc-members:
:show-inheritance:
This diff is collapsed.
Click to expand it.
fsl/data/mesh.py
+
1
−
1
View file @
6fb27740
...
...
@@ -48,7 +48,7 @@ class TriangleMesh(object):
``dataSource`` Full path to the mesh file (or ``None`` if there is
no file associated with this mesh).
``vertices`` A :math:`N
\t
imes 3` ``numpy
`` array containing
``vertices`` A :math:`N
\t
imes 3` ``numpy`` array containing
the vertices.
``indices`` A :meth:`M
\t
imes 3` ``numpy`` array containing
...
...
This diff is collapsed.
Click to expand it.
fsl/utils/transform.py
+
8
−
8
View file @
6fb27740
...
...
@@ -14,7 +14,7 @@ spaces. The following functions are provided:
scaleOffsetXform
invert
concat
compse
comp
o
se
decompose
rotMatToAxisAngles
axisAnglesToRotMat
...
...
@@ -417,18 +417,18 @@ def flirtMatrixToSform(flirtMat, srcImage, refImage):
def
sformToFlirtMatrix
(
srcImage
,
refImage
,
srcXform
=
None
):
"""
Under the assumption that the given ``srcImage`` and ``refImage``
share a
common world coordinate system (defined by their
:attr:`voxToWorldMat` attributes), this function will calculate and
"""
Under the assumption that the given ``srcImage`` and ``refImage``
share a
common world coordinate system (defined by their
:attr:`
.Nifti.
voxToWorldMat` attributes), this function will calculate and
return a transformation matrix from the ``srcImage`` scaled voxel
coordinate system to the ``refImage`` scaled voxel coordinate system,
that
can be saved to disk and used with FLIRT, to resample the source
image to
the reference image.
coordinate system to the ``refImage`` scaled voxel coordinate system,
that
can be saved to disk and used with FLIRT, to resample the source
image to
the reference image.
:arg srcImage: Source :class:`.Image`
:arg refImage: Reference :class:`.Image`
:arg srcXform: Optionally used in place of the ``scrImage``
:attr:`.voxToWorldMat`
:attr:`.
Nifti.
voxToWorldMat`
"""
srcScaledVoxelsToVoxelsMat
=
invert
(
srcImage
.
voxelsToScaledVoxels
())
...
...
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