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, ...)
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
Run this code# NOT RUN {
if (have_fs()){
nu_correct("/path/to/T1.nii.gz")
}
# }
Run the code above in your browser using DataLab