bias_correct: N3 or N4 Correct

Description Usage Arguments Value

Description

This function wraps ANTsR bias field corrections and returns nifti objects

Usage

1
2
bias_correct(file, correction = c("N3", "N4"), outfile = NULL,
  retimg = FALSE, reorient = FALSE, shrinkfactor = "4", ...)

Arguments

file

(character) image to be manipulated

correction

(character) N3 or N4 correction?

outfile

(character) resultant image name (optional)

retimg

(logical) return image of class nifti

reorient

(logical) If retimg, should file be reoriented when read in? Passed to readNIfTI.

shrinkfactor

Shrink factor passed to N3BiasFieldCorrection

...

additional arguments passed to N3BiasFieldCorrection

Value

If retimg then object of class nifti. Otherwise, Result from system command, depends if intern is TRUE or FALSE.


muschellij2/ENARSC2015 documentation built on May 23, 2019, 8:33 a.m.