rigid_transform#

rigid_transform(coordinates, rotation_matrix, out, translation, use_geometric_center=False, coordinates_mask=None, out_mask=None, center=None)[source]#

Apply a rigid transformation (rotation and translation) to given coordinates.

Parameters:
coordinatesNDArray

An array representing the coordinates to be transformed (d,n).

rotation_matrixNDArray

The rotation matrix to be applied (d,d).

translationNDArray

The translation vector to be applied (d,).

outNDArray

The output array to store the transformed coordinates (d,n).

coordinates_maskNDArray, optional

An array representing the mask for the coordinates (d,t).

out_maskNDArray, optional

The output array to store the transformed coordinates mask (d,t).

use_geometric_centerbool, optional

Whether to use geometric or coordinate center.