Learn R Programming

fslr (version 2.25.3)

reverse_rpi_orient: Reverse Reorientation an Image to RPI orientation

Description

This function uses fslswapdim to reorient an image

Usage

reverse_rpi_orient(
  file,
  convention = c("NEUROLOGICAL", "RADIOLOGICAL"),
  orientation,
  verbose = TRUE
)

reverse_rpi_orient_file( file, convention = c("NEUROLOGICAL", "RADIOLOGICAL"), orientation, verbose = TRUE )

Value

Object of class nifti

Arguments

file

Object of class nifti or character path

convention

Convention of original image (usually from rpi_orient)

orientation

Vector of length 3 from original image (usually from rpi_orient)

verbose

print diagnostic messages