mid_sagittal_align: Mid-Sagittal Plane Alignment

View source: R/mid_sagittal_align.R

mid_sagittal_alignR Documentation

Mid-Sagittal Plane Alignment

Description

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

Usage

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


muschellij2/fslr documentation built on May 10, 2024, 2:12 a.m.