This function uses fslswapdim to reorient an image
rpi_orient(file, verbose = TRUE)rpi_orient_file(file, verbose = TRUE)
is_rpi(file, verbose = FALSE)
is.rpi(file, verbose = FALSE)
Object of class nifti or character path
print diagnostic messages
List of 3 elements
img: Reoriented image of class nifti
convention: Convention (Neurological/Radiological) of original image
orientation: Original image orientations