I am running the following command. I only need the _resore.nii.gz, but this command applies segmentation too, which I think makes it so slow. Is there another command that just does bias field correction?
# Set the full path to the input file
input_file = os.path.join(input_dir1, file)
# Construct the FAST command
fast_cmd = [os.path.join(fsl_dir, "fast"), "-t", "1", "-B", input_file]
# -t : for T1W
# -b output estimated bias field
# -B output restored image (bias corrected image)
# Run the FAST command using subprocess
completed_process = subprocess.run(fast_cmd)