Estimate an image clip level
Source:R/all_generic.R, R/filebacked_neurovec.R, R/mapped_neurovec.R, and 2 more
clip_level-methods.RdComputes an AFNI-inspired clip threshold for separating foreground from low-intensity background. For 4D images, the threshold is computed from a representative 3D volume, typically the voxelwise median across time.
Usage
clip_level(x, mfrac = 0.5, gradual = FALSE, representative = "median")
# S4 method for class 'FileBackedNeuroVec'
clip_level(x, mfrac = 0.5, gradual = FALSE, representative = "median")
# S4 method for class 'MappedNeuroVec'
clip_level(x, mfrac = 0.5, gradual = FALSE, representative = "median")
# S4 method for class 'DenseNeuroVec'
clip_level(x, mfrac = 0.5, gradual = FALSE, representative = "median")
# S4 method for class 'AbstractSparseNeuroVec'
clip_level(x, mfrac = 0.5, gradual = FALSE, representative = "median")
# S4 method for class 'NeuroVol'
clip_level(x, mfrac = 0.5, gradual = FALSE, representative = "median")Arguments
- x
A neuroimaging object.
- mfrac
Fraction used in the median-update step. Values outside
(0, 0.99)fall back to0.5.- gradual
If
FALSE, return a scalar clip level. IfTRUE, return a 3D clip map interpolated across image octants.- representative
For multi-volume inputs, the 3D summary image used for thresholding. Supported values are
"median"and"mean_abs".