check_nifti-methods: Check if nifti image or read in a nifti image

Description Usage Arguments Value See Also

Description

Simple check to see if input is character or of class nifti

Usage

1
2
3
## S4 method for signature 'antsImage'
check_nifti(x, reorient = FALSE,
  allow.array = FALSE, fast = FALSE, need_header = TRUE, ...)

Arguments

x

character path of image or an object of class nifti, or array

reorient

(logical) passed to readnii if the image is to be re-oriented

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 antsImage classes

need_header

if TRUE, then an image type with header information will be returned. If not, then an array is fine. Used really only in conjunction with allow.array

...

additional options to pass to ants2oro

Value

nifti object or array if allow.array=TRUE and x is an array

See Also

readnii


neuroconductor-releases/extrantsr documentation built on Dec. 10, 2019, 12:07 a.m.