fsl.wrappers.flirt
This module provides wrapper functions for the FSL FLIRT tool, and other related tools.
Wrapper for the |
|
Wrapper for the |
|
Convenience function which runs |
|
Wrapper for the |
|
Use |
|
Use |
|
Use |
|
Wrapper for the |
|
Wrapper for the |
- fsl.wrappers.flirt.flirt(src, ref, **kwargs)[source]
Wrapper for the
flirt
command.The
twod
argument may be used in place of the2D
command line option.
- fsl.wrappers.flirt.applyxfm(src, ref, mat, out, interp='spline', **kwargs)[source]
Convenience function which runs
flirt -applyxfm ...
. Note that the default value for-interp
isspline
, which differs from the command-line default.
- fsl.wrappers.flirt.applyxfm4D(src, ref, out, mat, **kwargs)[source]
Wrapper for the
applyxfm4D
command.
- fsl.wrappers.flirt.concatxfm(atob, btoc, atoc)[source]
Use
convert_xfm
to concatenate two affines. Note that the order of the input matrices is the opposite of the order expected byconvert_xfm
.- Parameters:
atob – Input matrix, transforming from “A” to “B”.
btoc – Input matrix, transforming from “B” to “C”.
atoc – Output matrix, transforming from “A” to “C”.
- fsl.wrappers.flirt.fixscaleskew(inmat1, inmat2, omat)[source]
Use
convert_xfm
to fix the skew scale of an affine. Note that the order of the input matrices is the opposite of the order expected byconvert_xfm
.- Parameters:
inmat1 – Input matrix to fix.
inmat2 – Matrix to scale the skew to.
omat – Output matrix.