Quantile Transform Voxel based on Neighborhood Distribution

local_quantile_img(img, mask = NULL, radius = rep(1, 3), verbose = TRUE)

Arguments

img

Object of class nifti, character or antsImage

mask

Binary image of class nifti, antsImage, character. Only neighborhoods inside the mask will be taken

radius

vector of length 3 for number of voxels to go in each direction. Default is 27 neighbors (including voxel at center). Passed to getNeighborhoodInMask.

verbose

Print diagnostic messages

Value

An object of class nifti

Examples

nim = oro.nifti::nifti(array(rnorm(10^3), dim = rep(10, 3))) mask = nim > -1 res = local_quantile_img(nim, mask = mask)
#> Getting Image and Mask
#> Creating argument list
#> Running getNeighborhood
#> Reordering output