mymesh.register.translation2d#
- mymesh.register.translation2d(x, image=False)[source]#
Rigid transformation consisting of translation and rotation in 2D.
- Parameters:
x (list) – 2 item list, containing the x, and y translations [t0, t1], where displacements are specified in pixels.
- Returns:
A – Affine translation matrix (shape=(3,3))
- Return type:
np.ndarray