powered by
This function calls nii2mnc to convert NIfTI to MNC files
nii2mnc
nii2mnc(file, outfile = NULL)
Character filename of output
(character) input filename
(character) output filename
if (have_fs() && requireNamespace("oro.nifti", quietly = TRUE)) { img = oro.nifti::nifti(array(rnorm(5*5*5), dim = c(5,5,5))) mnc = nii2mnc(img) img_file = mnc2nii(mnc) }
Run the code above in your browser using DataLab