Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

robust_window

Window image based on quantiles of Image


Description

Takes an image, finds the quantiles given by probs, then sets values outside these values to other values, as determined by replace argument passed to to window_img

Usage

robust_window(img, non_zero = FALSE, probs = c(0, 0.999), ..., mask = NULL)

Arguments

img

object of class nifti

non_zero

Should zeroes be excluded from the calculation of quantiles?

probs

quantiles to constrain the image these define the window sent to window_img

...

additional arguments sent to window_img

mask

binary image to use to to calculate quantiles

Value

Object of class nifti with values outside quantiles replaced by values depending on replace argument passed to window_img


neurobase

'Neuroconductor' Base Package with Helper Functions for 'nifti' Objects

v1.32.1
GPL-2
Authors
John Muschelli [aut, cre]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.