You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The NIfTI spec says that the slope/intercept should be used for nonzero slope:
/ DATA SCALING:
------------
If the scl_slope field is nonzero, then each voxel value in the dataset
should be scaled as
y = scl_slope x + scl_inter
where x = voxel value stored
y = "true" voxel value
This could be checked when creating the header struct, setting the slope to 1f0 if its zero, or adding a type parameter to the nifti struct and dispatching on that for getindex.
The text was updated successfully, but these errors were encountered:
The NIfTI spec says that the slope/intercept should be used for nonzero slope:
This could be checked when creating the header struct, setting the slope to
1f0
if its zero, or adding a type parameter to the nifti struct and dispatching on that for getindex.The text was updated successfully, but these errors were encountered: