R/nii2mnc.R
nii2mnc.Rd
This function calls nii2mnc to convert NIfTI to MNC files
nii2mnc
nii2mnc(file, outfile = NULL)
(character) input filename
(character) output filename
Character filename of output
if (have_fs()) { img = oro.nifti::nifti(array(rnorm(5*5*5), dim = c(5,5,5))) mnc = nii2mnc(img) img_file = mnc2nii(mnc) }