nibabel.volumeutils.array_to_file
nibabel.volumeutils.can_cast
Enter search terms or a module, class or function name.
Calculate scaling and optional intercept for data
data : array
out_dtype : dtype
output data type
allow_intercept : bool
If True allow non-zero intercept
scaling : None or float
scalefactor to divide into data. None if no valid data
intercept : None or float
intercept to subtract from data. None if no valid data
mn : None or float
minimum of finite value in data or None if this will not be used to threshold data
mx : None or float
minimum of finite value in data, or None if this will not be used to threshold data