nu_correct: Use Freesurfers Non-Uniformity Correction
Description
This function calls nu_correct
to correct for non-uniformity
Usage
nu_correct(file, mask = NULL, opts = "", verbose = TRUE, ...)
Value
Object of class nifti depending on retimg
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
.
Examples
Run this codeif (FALSE) {
if (have_fs()){
nu_correct("/path/to/T1.nii.gz")
}
}
Run the code above in your browser using DataLab