Compatibility functions for older versions of nibabel
Nibabel <= 1.3.0 do not have these attributes:
The equivalents for these older versions of nibabel are:
With old nibabel, getting unscaled data used read_img_data(img, prefer=”unscaled”). Newer nibabel should prefer the `get_unscaled method on the image proxy object
Return affine from nibabel image
Parameters: | img : SpatialImage instance
|
---|---|
Returns: | affine : object
|
Return data object for nibabel image
Parameters: | img : SpatialImage instance
|
---|---|
Returns: | dataobj : object
|
Return header from nibabel image
Parameters: | img : SpatialImage instance
|
---|---|
Returns: | header : object
|
Get the data from a nibabel image, maybe without applying scaling
Parameters: | img : SpatialImage instance
|
---|---|
Returns: | data : ndarray
|