This function takes in an image, flips the image over the left/right plane, registers that flipped image to the original image, then applies the half transformation

mid_sagittal_align(
  file,
  outfile = NULL,
  retimg = TRUE,
  opts = "",
  translation = TRUE,
  force_rpi = TRUE,
  verbose = TRUE
)

Arguments

file

(character) input filename or class nifti

outfile

(character) output filename

retimg

(logical) return image of class nifti

opts

(character) options passed to flirt

translation

(logical) should the translation parameters be preserved (TRUE) or set to zero (FALSE)

force_rpi

Should rpi_orient_file be run?

verbose

(logical) print diagnostic messages

Value

Filename of output or nifti depending on retimg