Simple check to see if input is character, list, nifti, or class antsImage

check_ants(x, ...)

# S4 method for class 'antsImage'
check_ants(x, ...)

# S4 method for class 'ANY'
check_ants(x, ...)

# S4 method for class 'character'
check_ants(x, ...)

# S4 method for class 'list'
check_ants(x, ...)

Arguments

x

character path of image or an object of class antsImage

...

arguments passed to other methods, namely antsImageRead

Value

antsImage object

See also

Author

John Muschelli muschellij2@gmail.com