reverse_rpi_orient: Reverse Reorientation an Image to RPI orientation

Description Usage Arguments Value Note

View source: R/rpi_orient.R

Description

This function uses fslswapdim to reorient an image

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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
)

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

Value

Object of class nifti

Note

'reverse_rpi_orient2' and 'reverse_rpi_orient_file2' uses 'RNifti' to ensure the reading orientation


neuroconductor-devel/fslr documentation built on May 6, 2021, 1:44 p.m.