I want to find a matrix corresponding to certain transformations I already know. Basically I have a set of vectors $x_i$ and I need the matrix $m$ that transforms $x_i$ to another set of vectors $b_i$ that I also know. The issue I have is that there appears to be a displacement, a shear and a rotation component. I have tried the following already:
x1 = {{205, 1096, 0, 0},{0, 0, 205, 1096}}
b1 = {438, 1170}
x2 = {{5573, 3164, 0, 0},{0, 0, 5573, 3164}}
b2 = {5175, 2993}
m = {m11, m12, m21, m22}
Solve[{x1 . m == b1, x2 . m == b2}, m]
By rewriting $x_i = \begin{pmatrix} x_{i1} & x_{i2} & 0 & 0\\ 0 & 0 & x_{i1} & x_{i2} \end{pmatrix}$ and solving for $m$. This however does not map the rest of the points correctly.
LinearSolve
to find $m$. $\endgroup$FindGeometricTransform
is what you want. $\endgroup$