Calculate the affine transformation matrix.
p_in, p_out ((3,2)-array_like) – list of 3 x 2d points which will be transformed from p_in to p_out
res – affine transformation matrix
(3x3)-array