Defacing with the Poldrack, R. ‘pydeface’ Python module.

pydcmio.deface.pdeface.deface(input_files, outdir, reference_file=None, fsl_sh='/etc/fsl/5.0/fsl.sh')[source]ΒΆ

Deface MRI head images using Poldrack, R. ‘pydeface’ Python module.

Parameters:

input_files: list of str

Input MRI head images to be defaced.

outdir: str

The output folder.

reference_file: str (optional, default None)

The image that must be used as reference if more than one image have been supplied as input.

fsl_sh: str (optional, default DEFAULT_FSL_PATH)

The FSL configuration file.

Returns:

deface_files: list of str

The defaced input MRI head images.

snap_files: list of str

The corresponding snaps that can be used to check the defacing result.