Author: rick reynolds (---.nimh.nih.gov)
Date: 01-02-09 19:08
Hi Tom,
The NIfTI standards says, "If the scl_slope field is nonzero,
then each voxel value in the dataset should be scaled as:
y = scl_slope * x + scl_inter".
While it does not explicitly state what do to in the the case
of zero, there is only one reasonable thing (which is probably
why it wasn't written). Many fields are allowed to be zero so
that programmers can create a dataset without having to memorize
all of the documentation.
That just seems to be a small oversight from PyNifti. Nuking
the data does not seem like a good idea... :)