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, probs = c(0, 0.999), ...)
Arguments
probs
quantiles to constrain the image these define the window sent to window_img
Value
Object of class nifti with values outside quantiles replaced
by values depending on replace argument passed to window_img