Re: Deconstructing affine transformations into rotation, scale, skew



On 30 juin, 18:10, no_s...@xxxxxxxxxxxxxxxxxx (Spud Demon) wrote:
Given a 2-dimensional affine transform (6 coefficients as defined athttp://java.sun.com/j2se/1.5.0/docs/api/java/awt/geom/AffineTransform...)

[ x'] [ m00 m01 m02 ] [ x ] [ m00x + m01y + m02 ]
[ y'] = [ m10 m11 m12 ] [ y ] = [ m10x + m11y + m12 ]
[ 1 ] [ 0 0 1 ] [ 1 ] [ 1 ]

How can I separate this transformation into its components?

The translation vector is obviously <m02,m12>, but after that it's not so
trivial. I would like to come up with:

* Rotation (scalar)
* Scaling or dilation (scalar or 2-D vector)
* Indication of whether the transform flips the image (bit)
* Skew (2-D vector?)

Pointers to info or even just the "right" terms to use in my web search
will be greatly appreciated!

--Spud Demon

Maybe this can help:
http://groups.google.com/group/sci.math/browse_thread/thread/400a6438ca550cd6
.



Relevant Pages