afni_3dWinsor: AFNI 3dWinsor function

Description Usage Arguments Value

View source: R/afni_3dWinsor.R

Description

Wrapper for AFNI 3dWinsor function, which applies a 3D 'Winsorizing' filter.

Usage

1
2
3
4
5
6
7
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(...)

Arguments

file

nifti object or NIfTI filename. If more than one is given, they are given names of the letters up to z.

radius

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

trim

Quantiles for the top and bottom of winsorize filter

repeat_filter

repeat filter nn times. If nn < 0, means to repeat filter until less than abs(n) voxels change

keepzero

don't filter voxels that are zero

lower_threshold

set voxels at or below lower_threshold to zero

mask

use a mask dataset - voxels NOT in the mask won't be filtered

opts

Additional options passed to 3dWinsor

retimg

Should a nifti be returned?

...

additional arguments to afni_3dAFNItoNIFTI

Value

Output filename of the image or a nifti image, depending on retimg


neuroconductor/afnir documentation built on May 22, 2021, 9:54 a.m.