local_quantile_img: Quantile Transform Voxel based on Neighborhood Distribution

Description Usage Arguments Value Examples

View source: R/local_quantile_img.R

Description

Quantile Transform Voxel based on Neighborhood Distribution

Usage

1
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

1
2
3
nim = oro.nifti::nifti(array(rnorm(10^3), dim = rep(10, 3)))
mask = nim > -1
res = local_quantile_img(nim, mask = mask)

muschellij2/extrantsr documentation built on July 27, 2021, 7:41 a.m.