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.reorient

brainprep.interfaces.reorient(image_file, output_dir, entities)[source]

Reorients a BIDS-compliant anatomical image using FSL’s fslreorient2std.

Parameters:
image_fileFile

Path to the input image file.

output_dirDirectory

Directory where the reoriented image will be saved.

entitiesdict

A dictionary of parsed BIDS entities including modality.

Returns:
commandlist[str]

Reorientation command-line.

outputstuple[File]
  • reorient_image_file : File - Reoriented input image file.