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.argv is used

Returns:

An argparse.Namespace object containing parsed arguments

fsl.scripts.fsl_apply_x5.applyLinear(args)[source]

Applies a linear X5 transformation file to the input.

Parameters:

argsargparse.Namespace object

Returns:

The transformed input as an Image object

fsl.scripts.fsl_apply_x5.applyNonlinear(args)[source]

Applies a non-linear X5 transformation file to the input.

Parameters:

argsargparse.Namespace object

Returns:

The transformed input as an Image object

fsl.scripts.fsl_apply_x5.main(args=None)[source]

Entry point. Parse command-line arguments, then calls applyLinear() or applyNonlinear() depending on the x5 file type.