This function smooth an image within a mask and replaces the values of the original image with the smoothed values.
fslsmooth_in_mask(file, sigma = 10, mask = NULL, ...)
fsl_smooth_in_mask(...)(character) image to be smoothed
(numeric) sigma (in mm) of Gaussian kernel for smoothing
(character) optional mask given for image
additional arguments passed to fslsmooth.
Object of class nifti