Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
oldmin/oldmax aren't handled properly #582
(you can also look at this commit by Chris Rorden)
However, after I defined old min and old max in the NRRD header, the data reported in Slicer aren't scaled. The difference becomes stark when you load both NIFTI and NRRD image in Slicer. NIFTI voxels are scaled while NRRD aren't. On the other hand, fslview, NIBABEL both report the data after scaling.
So, we should report NRRD data after scaling them as follows:
find scl_slope and scl_inter from above and
Work with the following public data: the T1_echo*.nii.gz have scaling present in the NIFTI.
A rough draft of a fix (not tested) for this issue would be to add the code below to itkNrrdImageIO.