Rescales image cal_max and cal_min slots to
be the max and min, respectively, of an object of class nifti, with
na.rm = TRUE. This is so that when images are rendered/written,
the values correspond to those in the array (stored in .Data slot)
are plotted on correct greyscale and no error is given by writeNIfTI.
calibrateImage(img, infok = TRUE)
cal_img(img, infok = TRUE)| img | is a |
|---|---|
| infok | is a logical value whether or not |
An object of class nifti.
John Muschelli muschellij2@gmail.com