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
Model registry
Operate
Environments
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
FSL
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
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
from
.flirt
import
(
flirt
,
# noqa
invxfm
,
applyxfm
,
applyxfm4D
,
concatxfm
,
mcflirt
)
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.
flirt
applyxfm
applyxfm4D
invxfm
concatxfm
mcflirt
...
...
@@ -70,6 +71,25 @@ def applyxfm(src, ref, mat, out, interp='spline', **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.fslwrapper
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