mymesh.register.rigid2d#
- mymesh.register.rigid2d(x, center=array([0, 0]), image=False)[source]#
Rigid transformation consisting of translation and rotation in 2D.
- Parameters:
I (np.ndarray) – numpy array containing the image data
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:
I2 – numpy array containing the transformed image data
- Return type:
np.ndarray