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

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