checknii-methods | R Documentation |
Ensures the output to be a character filename (or vector) from an input
image or nifti
, but not gzipped and has .nii
extension
checknii(file, ...) ## S4 method for signature 'nifti' checknii(file, ...) ## S4 method for signature 'factor' checknii(file, ...) ## S4 method for signature 'character' checknii(file, ...) ## S4 method for signature 'list' checknii(file, ...) ## S4 method for signature 'ANY' checknii(file, ...) ensure_nii(file, ...)
file |
character or |
... |
options passed to |
character filename of image or temporary nii, with .nii extension
John Muschelli muschellij2@gmail.com
set.seed(5) dims = rep(10, 3) arr = array(rnorm(prod(dims)), dim = dims) arr[,,10] = 0 nim = oro.nifti::nifti(arr) rnifti = RNifti::asNifti(nim) timg = tempimg(nim) limg = list(factor(timg), factor(timg)) func = checknii func(nim) func(rnifti) func(timg) func(limg)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.