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. |
|
Resample a deformed image back to the original image space. |
Classes
|
N-D Spatial Transformer Obtained from https://github.com/voxelmorph/voxelmorph |
|
Integrates a vector field via scaling and squaring. |