fsl.scripts.fsl_apply_x5¶
The fsl_apply_x5 script can be used to apply an X5 transformation file
to resample an image.
-
fsl.scripts.fsl_apply_x5.parseArgs(args)[source]¶ Parses command-line arguments.
Parameters: args – Sequence of command-line arguments. If None,sys.argvis usedReturns: An argparse.Namespaceobject containing parsed arguments
-
fsl.scripts.fsl_apply_x5.applyLinear(args)[source]¶ Applies a linear X5 transformation file to the input.
Parameters: args – argparse.NamespaceobjectReturns: The transformed input as an Imageobject
-
fsl.scripts.fsl_apply_x5.applyNonlinear(args)[source]¶ Applies a non-linear X5 transformation file to the input.
Parameters: args – argparse.NamespaceobjectReturns: The transformed input as an Imageobject
-
fsl.scripts.fsl_apply_x5.main(args=None)[source]¶ Entry point. Parse command-line arguments, then calls
applyLinear()orapplyNonlinear()depending on the x5 file type.