Description Usage Arguments Value Examples
This function calls mri_convert
to convert an image
1 | mri_convert(file, outfile, opts = "")
|
file |
(character) input filename |
outfile |
(character) output filename |
opts |
(character) additional options to |
Result of system
command
1 2 3 4 | if (have_fs() && requireNamespace("oro.nifti", quietly = TRUE)) {
img = oro.nifti::nifti(array(rnorm(5*5*5), dim = c(5,5,5)))
res = mri_convert(img, outfile = tempfile(fileext = ".mgz"))
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.