Simple check to see if input is character or of class nifti
# S4 method for antsImage check_nifti( x, reorient = FALSE, allow.array = FALSE, fast = FALSE, need_header = TRUE, ... )
x | character path of image or an object of class nifti, or array |
---|---|
reorient | (logical) passed to |
allow.array | (logical) Are array types allowed (TRUE) or should there be an error if the object is not character or class nifti. |
fast | not used for |
need_header | if |
... | additional options to pass to |
nifti object or array if allow.array=TRUE and x is an array
readnii