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.fsl.scale¶
- brainprep.interfaces.fsl.scale(image_file, scale, output_dir, entities)[source]¶
Apply an isotropic resampling transformation to a BIDS-compliant image file using FSL’s flirt.
- Parameters:
- image_fileFile
Path to the input image file.
- scaleint
Scale factor applied in all directions.
- output_dirDirectory
Directory where the scaled image will be saved.
- entitiesdict
A dictionary of parsed BIDS entities including modality.
- Returns:
- commandlist[str]
Scaling command-line.
- outputstuple[File]
scaled_anatomical_file : File - Scaled input image file.
transform_file : File - The associated transformation file.