Images are converted nifti objects (from the oro.nifti package), an operation is performed using iMath, and the result is a nifti object.

oMath(img, ..., retfile = FALSE)

Arguments

img

Object of class nifti

...

Additional arguments passed to iMath

retfile

logical to indicate if an antsImage should be returned (useful for chaining)

Value

Object of class nifti