How can I fully decompose an affine transformation matrix that includes tx, ty, rotation (theta), scale-x (sx), scale-y (sy), shear-x and shear-y?
Using this matrix as example:
$$A = \begin{pmatrix}a & b & t_x\\c & d & t_y\\0 & 0 & 1\end{pmatrix}$$
I have seen similar questions in here, but they all limit the decomposition to a one value of skew/shear only (eg. Decomposition of a nonsquare affine matrix).
In this case, my parameters a-b-c-d contain rotation, scaling and shear, so I assume that no even rotation is as easy as an arctangent, given that:
a = sx * cos(theta)
b = sx * (-sin(theta)) * shear-x
c = sy * sin(theta) * shear-y
d = sy * cos(theta)
Therefore, typical equations that assume that shear-x and shear-y are equal, or that assume that one of them is zero are not used. Am I rigt?
In this general case with all four transformations, how can one find the parameters of each transformation?