itk_dreg.reduce_dfield.matrix_transform
¶
Module Contents¶
Functions¶
Get a 4x4 affine matrix from an ITK matrix transform |
|
Convert from a NumPy affine matrix to |
|
Convert a 3x3 matrix from numpy to ITK format |
|
Estimate a mean representation of a list of transform results |
|
Compute average rotation by way of linear quaternion averaging |
|
Compute linear average of translation vectors |
API¶
- itk_dreg.reduce_dfield.matrix_transform.itk_matrix_transform_to_matrix(t: Union[itk.Euler3DTransform[itk.D], itk.AffineTransform[itk.D, 3]]) numpy.typing.ArrayLike ¶
Get a 4x4 affine matrix from an ITK matrix transform
- itk_dreg.reduce_dfield.matrix_transform.to_itk_euler_transform(mat: numpy.typing.ArrayLike) itk.Euler3DTransform[itk.D] ¶
Convert from a NumPy affine matrix to
itk.Euler3DTransform
representation.- Parameters:
mat – The input 4x4 affine matrix
- Returns:
The corresponding
itk.Euler3DTransform
.
- itk_dreg.reduce_dfield.matrix_transform.np_to_itk_matrix(arr: numpy.typing.ArrayLike) itk.Matrix[itk.D, 3, 3] ¶
Convert a 3x3 matrix from numpy to ITK format
- itk_dreg.reduce_dfield.matrix_transform.estimate_euler_transform_consensus(transforms: numpy.typing.ArrayLike) numpy.typing.ArrayLike ¶
Estimate a mean representation of a list of transform results
- itk_dreg.reduce_dfield.matrix_transform.average_rotation(rotations: numpy.typing.ArrayLike) numpy.typing.ArrayLike ¶
Compute average rotation by way of linear quaternion averaging
- itk_dreg.reduce_dfield.matrix_transform.average_translation(translations: numpy.typing.ArrayLike) numpy.typing.ArrayLike ¶
Compute linear average of translation vectors