apply_malf_regs: Apply MALF Registrations

View source: R/apply_malf_regs.R

apply_malf_regsR Documentation

Apply MALF Registrations

Description

Takes in an input file, set of registrations, and a set of template structures and applies the registrations, with a different interpolator if necessary

Usage

apply_malf_regs(
  infile,
  regs,
  template.structs,
  keep_images = TRUE,
  outfiles = NULL,
  inverted = FALSE,
  interpolator = NULL,
  verbose = TRUE,
  ...
)

Arguments

infile

Input Image file

regs

List of registrations from malf or malf_registration, each element must have fwdtransforms and interpolator. Same length as template.structs

template.structs

Template gold standards to apply registration into infile space

keep_images

Keep the template.structs in infile space

outfiles

Output filenames for template.structs in infile space

inverted

Should the MALF be inverted (inverse transforms are used instead of forward)

interpolator

interpolation done for antsApplyTransforms, can be different than original MALF

verbose

Print diagnostic output

...

Arguments to be passed to ants_apply_transforms

Value

The output filename or the nifti image or list of registrations and output file


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