reapply_malf: Reapply MALF Operation

Description Usage Arguments Value

View source: R/reapply_malf.R

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, and then combines output

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
reapply_malf(
  infile,
  regs,
  template.structs,
  keep_images = FALSE,
  outfiles = NULL,
  outfile = NULL,
  retimg = TRUE,
  func = "mode",
  ties.method = "first",
  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

outfile

Fused output filename

retimg

Return Image to user using readnii

func

function to combine labels. See stat_img.

ties.method

If func = "mode", then this is passed to stat_img.

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 July 27, 2021, 7:41 a.m.