NIPY logo

Site Navigation

NIPY Community

Table Of Contents

Next topic

algorithms.registration.optimizer

This Page

algorithms.registration.image_utils

Module: algorithms.registration.image_utils

nipy.algorithms.registration.image_utils.get_affine(im)

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

Either a nipy image or a nibabel image.