Get the 4x4 matrix representing the (spatial) affine transform of an image whether the input is a nipy object or a nibabel object.
This function will be useless when the nipy image class gets a get_affine method that always returns a 4x4 matrix. Currently, the affine of an AffineImage is not a 4x4 matrix for images with dimension > 3.
Parameters : | im : image
|
---|