nu_correct: Use Freesurfers Non-Uniformity Correction

Description Usage Arguments Value Examples

View source: R/nu_correct.R

Description

This function calls nu_correct to correct for non-uniformity

Usage

1
nu_correct(file, mask = NULL, opts = "", verbose = TRUE, ...)

Arguments

file

(character) input filename

mask

(character or nifti) Mask to use for correction.

opts

(character) additional options to mri_segment

verbose

print diagnostic messages

...

additional arguments passed to fs_cmd.

Value

Object of class nifti depending on retimg

Examples

1
2
3
4
5
6
## Not run: 
if (have_fs()){
    nu_correct("/path/to/T1.nii.gz")
} 

## End(Not run) 

freesurfer documentation built on Dec. 9, 2020, 1:07 a.m.