window_img: nifti image windower
Description
Windows an image to min and max values and also changes
cal_max and cal_min parameters
Usage
window_img(x, window = c(0, 100), replace = c("window", "missing", "zero"), ...)
Arguments
x
is either a character name for the image or an object of class nifti
window
numeric of length 2 that gives min and max for window
replace
either "window" if the any values outside of c(min, max) are
set to the min or max or "missing" for these to be set to NA
Value
object of class nifti