This function calculates Local Moments (mean, standard deviation, skew) for an array.
get_neighbors( image, window = NULL, nvoxels = NULL, mask = NULL, rm.value = FALSE, check.wrap = TRUE, rep.value = 0, ... )
image | input image |
---|---|
window | window (in width) for the neighborhood |
nvoxels | window (in voxels) for the neighborhood 1 results in a 3x3 cube |
mask | array or object of class nifti of same size as image |
rm.value | remove the voxel itself before taking the moment |
check.wrap | Logical - check wrapround and put |
rep.value | Replace wrapped values (edge of image) to this value |
... | Not used |
Array with same dimensions as image