mymesh.register.T2d#

mymesh.register.T2d(t0, t1)[source]#

Generate a translation matrix

\[\begin{split}\mathbf{T} = \begin{bmatrix} 1 & 0 & t_0 \\ 0 & 1 & t_1 \\ 0 & 0 & 1 \end{bmatrix}\end{split}\]
Parameters:
  • t0 (float) – Translation in the 0 axis (spatial y)

  • t1 (float) – Translation in the 1 axis (spatial x)

Returns:

t – 3x3 translation matrix

Return type:

np.ndarray