Pydra workflow for defacing structural brain images.
Install:
pipx install pydra-deface
Example:
pydra-deface -t template.nii.gz -m mask.nii.gz input.nii.gz defaced.nii.gz
Install:
pip install pydra_deface
Example:
from pydra_deface.tasks import deface
task = deface(
input_image="input.nii.gz",
output_image="defaced.nii.gz",
template_image="template.nii.gz",
template_mask="mask.nii.gz",
)
task()