[Neuroimaging] Nibabel API change - always read as float

Brendan Moloney moloney at ohsu.edu
Tue Jul 21 21:39:15 CEST 2015


> Actually, because of the slope, inter processing in the dataobj, I
> think you'll find you can do:
>
> data = np.array(img.dataobj).astype(np.float32) * dataobj.slope + dataobj.inter

Oops, I should have looked at the code...  Thanks for clarifying.


More information about the Neuroimaging mailing list