ants_apply_transforms-methods: Apply ANTs transforms to nifti images

ants_apply_transforms-methodsR Documentation

Apply ANTs transforms to nifti images

Description

Wraps antsApplyTransforms but allows for nifti objects from the oro.nifti package

Usage

ants_apply_transforms(fixed, moving, transformlist, ...)

## S4 method for signature 'ANY,list'
ants_apply_transforms(fixed, moving, transformlist, ret_ants = FALSE, ...)

## S4 method for signature 'ANY,character'
ants_apply_transforms(fixed, moving, transformlist, ret_ants = FALSE, ...)

## S4 method for signature 'ANY,ANY'
ants_apply_transforms(fixed, moving, transformlist, ret_ants = FALSE, ...)

Arguments

fixed

image defining domain into which the moving image is transformed.

moving

image to be mapped to fixed space.

transformlist

character vector of transforms generated by antsRegistration

...

Arguments to be passed to antsApplyTransforms.

ret_ants

if TRUE, the returned object is an antsImage, as opposed to a nifti

Value

Either nifti object or list of nifti objects

Author(s)

John Muschelli muschellij2@gmail.com

See Also

antsApplyTransforms


muschellij2/extrantsr documentation built on June 3, 2024, 7:04 p.m.