Resample the image to be an image with the data points lying on a regular grid with an affine mapping to the word space (a nipy VolumeImg).
Parameters: | affine: 4x4 or 3x3 ndarray, optional :
shape: (n_x, n_y, n_z), tuple of integers, optional :
interpolation : None, ‘continuous’ or ‘nearest’, optional
|
---|---|
Returns: | resampled_image : nipy VolumeImg
|
Notes
The coordinate system of the image is not changed: the returned image points to the same world space.