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

apply_multi_reg(infiles, transformlist, fixed, ...)

# S4 method for list,list
apply_multi_reg(infiles, transformlist, fixed, ...)

# S4 method for character,list
apply_multi_reg(infiles, transformlist, fixed, ...)

# S4 method for antsImage,character
apply_multi_reg(infiles, transformlist, fixed, ...)

# S4 method for nifti,character
apply_multi_reg(infiles, transformlist, fixed, ...)

Arguments

infiles

Input image files

transformlist

list or character vector of transforms generated by antsRegistration where each transform is a filename.

fixed

fixed image defining domain into which the infiles image is transformed

...

Arguments passed to antsApplyTransforms

Value

Object of class nifti

See also

antsApplyTransforms

Author

John Muschelli muschellij2@gmail.com