writeNifti {RNifti} | R Documentation |
This function writes an image to NIfTI-1 format, using the standard NIfTI-1 C library.
writeNifti(image, file, template = NULL, datatype = "auto")
image |
An image, in any acceptable form (see
|
file |
A character string containing a file name. |
template |
An optional template object to derive NIfTI-1 properties
from. Passed to |
datatype |
The NIfTI datatype to use when writing the data out. The
default, |
Jon Clayden <code@clayden.org>
The NIfTI-1 standard (http://www.nitrc.org/docman/view.php/26/64/nifti1.h).
## Not run: writeNifti(im, "image.nii.gz", datatype="float")