Wrapper for AFNI 3dWinsor function,
which applies a 3D 'Winsorizing' filter.
afni_3dWinsor(file, radius = 1.5, trim = c(0.2, 0.8),
repeat_filter = 1, keepzero = FALSE, lower_threshold = NULL,
mask = NULL, opts = "", retimg = TRUE, ...)
Winsor(...)
winsor(...)nifti object or NIfTI filename. If more than one is given,
they are given names of the letters up to z.
include all points within 'distance' in the operation, where distance is defined as sqrt(i*i+j*j+k*k), and (i,j,k) are voxel index offsets
Quantiles for the top and bottom of winsorize filter
repeat filter nn times. If nn < 0, means to repeat filter until less than abs(n) voxels change
don't filter voxels that are zero
set voxels at or below lower_threshold to zero
use a mask dataset - voxels NOT in the mask won't be filtered
Additional options passed to 3dWinsor
Should a nifti be returned?
additional arguments to afni_3dAFNItoNIFTI
Output filename of the image or a nifti image, depending
on retimg