MIR.utils.registration_utilsΒΆ
Registration utility functions and spatial transformer helpers.
Functions
|
Center-crop or center-pad a NumPy array to exactly match target_shape. |
|
Extract voxel spacing from a nibabel image. |
|
Create a 4x4 affine matrix from pixel spacing. |
|
Resample a numpy array by voxel spacing with |
|
Resample a deformed image back to the original image space and save it as NIfTI. |
Classes
|
N-D spatial transformer that warps an image with a voxel displacement field. |
|
Integrates a stationary velocity field via scaling and squaring. |