oro2ants: Convert Between nifti and antsImage

View source: R/oro2ants.R

oro2antsR Documentation

Convert Between nifti and antsImage

Description

NIfTI data can be converted between nifti (from the oro.nifti package) and antsImage objects.

Usage

oro2ants(img, reference = NULL, cleanup = TRUE, ...)

Arguments

img

Object of class nifti

reference

Object of class antsImage to copy header information (origin, spacing, direction) (experimental)

cleanup

temporary files are deleted after they are read in

...

arguments passed to checkimg

Value

Object of class antsImage

Examples

arr = array(rnorm(20^3), dim = rep(20, 3))
img = oro.nifti::nifti(arr)
oro2ants(img)

muschellij2/extrantsr documentation built on June 3, 2024, 7:04 p.m.