ants2oro | R Documentation |
NIfTI data can be converted between antsImage
(from the ANTsR package) and nifti S4 objects.
ants2oro(
img,
reorient = FALSE,
reference = NULL,
...,
cleanup = TRUE,
drop_dim = TRUE,
dtype = TRUE,
reset_slope = FALSE
)
img |
Object of class antsImage |
reorient |
Reorientation passed to |
reference |
Object of class |
... |
Arguments passed to |
cleanup |
temporary files are deleted after they are read in |
drop_dim |
Should |
dtype |
Should |
reset_slope |
Reset slope/intercept of image
Passed to |
Object of class nifti
.
library(ANTsR)
arr = array(rnorm(20^3), dim = rep(20, 3))
aimg = as.antsImage(arr)
ants2oro(aimg)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.