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
0182c2b2
Commit
0182c2b2
authored
4 years ago
by
Paul McCarthy
Browse files
Options
Downloads
Patches
Plain Diff
MNT: More explicit documentation for concatxfm
parent
685b68d3
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/wrappers/flirt.py
+14
-7
14 additions, 7 deletions
fsl/wrappers/flirt.py
with
14 additions
and
7 deletions
fsl/wrappers/flirt.py
+
14
−
7
View file @
0182c2b2
...
...
@@ -98,19 +98,26 @@ def invxfm(inmat, omat):
return
[
'
convert_xfm
'
,
'
-omat
'
,
omat
,
'
-inverse
'
,
inmat
]
@wutils.fileOrArray
(
'
inmat1
'
,
'
inmat2
'
,
'
outmat
'
)
@wutils.fileOrArray
(
'
atob
'
,
'
atoc
'
,
'
btoc
'
)
@wutils.fslwrapper
def
concatxfm
(
inmat1
,
inmat2
,
outmat
):
"""
Use ``convert_xfm`` to concatenate two affines.
"""
def
concatxfm
(
atob
,
btoc
,
atoc
):
"""
Use ``convert_xfm`` to concatenate two affines. Note that the
order of the input matrices is the opposite of the order expected
by ``convert_xfm``.
:arg atob: Input matrix, transforming from
"
A
"
to
"
B
"
.
:arg btoc: Input matrix, transforming from
"
B
"
to
"
C
"
.
:arg atoc: Output matrix, transforming from
"
A
"
to
"
C
"
.
"""
asrt
.
assertFileExists
(
inmat1
,
inmat2
)
asrt
.
assertFileExists
(
atob
,
btoc
)
cmd
=
[
'
convert_xfm
'
,
'
-omat
'
,
outm
at
,
at
oc
,
'
-concat
'
,
inmat2
,
inmat1
]
btoc
,
atob
]
return
cmd
...
...
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