This function uses fslswapdim
to reorient an image
reverse_rpi_orient(file, convention = c("NEUROLOGICAL", "RADIOLOGICAL"),
orientation, verbose = TRUE)reverse_rpi_orient_file(file, convention = c("NEUROLOGICAL",
"RADIOLOGICAL"), orientation, verbose = TRUE)
Object of class nifti
or character path
Convention of original image (usually from rpi_orient
)
Vector of length 3 from original image
(usually from rpi_orient
)
print diagnostic messages
Object of class nifti