Hi all,<br><br>&nbsp; Is there a way to get the different components (rotation, scaling and shear) from a 2D affine matrix.<br>I have a method for getting the rotation and scaling but am not sure how to get the shear. The method I am using<br>
to get the rotation and scaling is:<br><br>Let A be the affine matrix.<br><br>USV&#39; = svd(A);<br>R = UV&#39;;<br><br>Scale X&nbsp; = S[0,0]<br>Scale Y = S[1,1]<br>Angle = asin(R[1,0])<br><br>Is this the right way to do it ? Also I would appreciate if someone can point me to how to get the shear factors.<br>
<br>Thanks!<br><br><br><br><br><br>