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
)
reverse_rpi_orient2(
file,
convention = c("NEUROLOGICAL", "RADIOLOGICAL"),
orientation,
verbose = TRUE
)
reverse_rpi_orient_file2(
file,
convention = c("NEUROLOGICAL", "RADIOLOGICAL"),
orientation,
verbose = TRUE
)| file | Object of class |
|---|---|
| convention | Convention of original image (usually from |
| orientation | Vector of length 3 from original image
(usually from |
| verbose | print diagnostic messages |
Object of class nifti
`reverse_rpi_orient2` and `reverse_rpi_orient_file2` uses `RNifti` to ensure the reading orientation