Skip to content
Snippets Groups Projects
Commit 2b8aa6cf authored by Martin Craig's avatar Martin Craig
Browse files

Make 'warp' an optional parameter - applywarp can be used to just apply affine transformations

parent 9f3310d4
No related branches found
No related tags found
No related merge requests found
...@@ -41,7 +41,7 @@ def fnirt(src, ref, **kwargs): ...@@ -41,7 +41,7 @@ def fnirt(src, ref, **kwargs):
@wutils.fileOrImage('src', 'ref', 'out', 'warp', 'mask') @wutils.fileOrImage('src', 'ref', 'out', 'warp', 'mask')
@wutils.fileOrArray('premat', 'postmat') @wutils.fileOrArray('premat', 'postmat')
@wutils.fslwrapper @wutils.fslwrapper
def applywarp(src, ref, out, warp, **kwargs): def applywarp(src, ref, out, **kwargs):
"""Wrapper for the ``applywarp`` command. """ """Wrapper for the ``applywarp`` command. """
valmap = { valmap = {
...@@ -55,8 +55,7 @@ def applywarp(src, ref, out, warp, **kwargs): ...@@ -55,8 +55,7 @@ def applywarp(src, ref, out, warp, **kwargs):
cmd = ['applywarp', cmd = ['applywarp',
'--in={}'.format(src), '--in={}'.format(src),
'--ref={}'.format(ref), '--ref={}'.format(ref),
'--out={}'.format(out), '--out={}'.format(out)]
'--warp={}'.format(warp)]
cmd += wutils.applyArgStyle('--=', valmap=valmap, **kwargs) cmd += wutils.applyArgStyle('--=', valmap=valmap, **kwargs)
......
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