Skip to content
Snippets Groups Projects
Commit 0182c2b2 authored by Paul McCarthy's avatar Paul McCarthy :mountain_bicyclist:
Browse files

MNT: More explicit documentation for concatxfm

parent 685b68d3
No related branches found
No related tags found
No related merge requests found
...@@ -98,19 +98,26 @@ def invxfm(inmat, omat): ...@@ -98,19 +98,26 @@ def invxfm(inmat, omat):
return ['convert_xfm', '-omat', omat, '-inverse', inmat] return ['convert_xfm', '-omat', omat, '-inverse', inmat]
@wutils.fileOrArray('inmat1', 'inmat2', 'outmat') @wutils.fileOrArray('atob', 'atoc', 'btoc')
@wutils.fslwrapper @wutils.fslwrapper
def concatxfm(inmat1, inmat2, outmat): def concatxfm(atob, btoc, atoc):
"""Use ``convert_xfm`` to concatenate two affines.""" """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', cmd = ['convert_xfm',
'-omat', '-omat',
outmat, atoc,
'-concat', '-concat',
inmat2, btoc,
inmat1] atob]
return cmd return cmd
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment