mymesh.register.rigid#

mymesh.register.rigid(x, center=array([0, 0, 0]), rotation_order=[0, 1, 2], rotation_mode='cartesian', image=False)[source]#

Rigid transformation consisting of translation and rotation in 3D.

Parameters:
  • x (list) – 6 item list, containing the x, y, and z translations and rotations [t0, t1, t2, alpha, beta, gamma], where angles are specified in radians and displacements are specified in pixels.

  • center (list or np.ndarary, optional) – Reference point for the rotation

Returns:

A – Affine transformation matrix (shape=(4,4))

Return type:

np.ndarray