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
d2f522f6
Commit
d2f522f6
authored
5 years ago
by
Paul McCarthy
Browse files
Options
Downloads
Patches
Plain Diff
ENH: new applyxfm4D wrapper
parent
b362fae5
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
fsl/wrappers/__init__.py
+1
-0
1 addition, 0 deletions
fsl/wrappers/__init__.py
fsl/wrappers/flirt.py
+20
-0
20 additions, 0 deletions
fsl/wrappers/flirt.py
with
21 additions
and
0 deletions
fsl/wrappers/__init__.py
+
1
−
0
View file @
d2f522f6
...
@@ -87,6 +87,7 @@ from .fsl_anat import (fsl_anat,) # noqa
...
@@ -87,6 +87,7 @@ from .fsl_anat import (fsl_anat,) # noqa
from
.flirt
import
(
flirt
,
# noqa
from
.flirt
import
(
flirt
,
# noqa
invxfm
,
invxfm
,
applyxfm
,
applyxfm
,
applyxfm4D
,
concatxfm
,
concatxfm
,
mcflirt
)
mcflirt
)
from
.fnirt
import
(
fnirt
,
# noqa
from
.fnirt
import
(
fnirt
,
# noqa
...
...
This diff is collapsed.
Click to expand it.
fsl/wrappers/flirt.py
+
20
−
0
View file @
d2f522f6
...
@@ -14,6 +14,7 @@ tools.
...
@@ -14,6 +14,7 @@ tools.
flirt
flirt
applyxfm
applyxfm
applyxfm4D
invxfm
invxfm
concatxfm
concatxfm
mcflirt
mcflirt
...
@@ -70,6 +71,25 @@ def applyxfm(src, ref, mat, out, interp='spline', **kwargs):
...
@@ -70,6 +71,25 @@ def applyxfm(src, ref, mat, out, interp='spline', **kwargs):
**
kwargs
)
**
kwargs
)
@wutils.fileOrArray
(
'
mat
'
)
@wutils.fileOrImage
(
'
src
'
,
'
ref
'
,
'
out
'
)
@wutils.fslwrapper
def
applyxfm4D
(
src
,
ref
,
out
,
mat
,
**
kwargs
):
"""
Wrapper for the ``applyxfm4D`` command.
"""
asrt
.
assertIsNifti
(
src
,
ref
)
valmap
=
{
'
singlematrix
'
:
wutils
.
SHOW_IF_TRUE
,
'
fourdigit
'
:
wutils
.
SHOW_IF_TRUE
,
}
cmd
=
[
'
applyxfm4D
'
,
src
,
ref
,
out
,
mat
]
cmd
+=
wutils
.
applyArgStyle
(
'
-
'
,
valmap
=
valmap
,
**
kwargs
)
return
cmd
@wutils.fileOrArray
()
@wutils.fileOrArray
()
@wutils.fslwrapper
@wutils.fslwrapper
def
invxfm
(
inmat
,
omat
):
def
invxfm
(
inmat
,
omat
):
...
...
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