Learn R Programming

fslr (version 1.0)

cal_img: Set Max/Min for nifti object by range of data

Description

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 grayscale and no error is given by writeNIfTI.

Usage

cal_img(img)

Arguments

img
nifti object

Value

  • object of type nifti