Note
This page is a reference documentation. It only explains the function signature, and not how to use it. Please refer to the user guide for the big picture.
brainprep.interfaces.ants.biasfield¶
- brainprep.interfaces.ants.biasfield(image_file, mask_file, output_dir, entities)[source]¶
Bias field correction of a BIDS-compliant anatomical image using ANTs’s N4BiasFieldCorrection.
- Parameters:
- image_fileFile
Path to the input image file.
- mask_file: File
Path to a binary brain mask file.
- output_dirDirectory
Directory where the reoriented image will be saved.
- entitiesdict
A dictionary of parsed BIDS entities including modality.
- Returns:
- commandlist[str]
Bias field correction command-line.
- outputstuple[File]
bc_image_file : File - The bias corrected input image file.
bc_field_file : File - The estimated bias field.