mnc2nii | R Documentation |
This function calls mnc2nii
to convert MNC files to NIfTI
mnc2nii(file, outfile = NULL)
file |
(character) input filename |
outfile |
(character) output filename |
Character filename of output
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, outfile = tempfile(fileext = ".nii"))
neurobase::readnii(img_file, verbose = TRUE)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.