Commit c2bf208e authored by Paul McCarthy's avatar Paul McCarthy 🚵
Browse files

BF: Missing normalisation step in decompose

parent 09c4e379
......@@ -214,6 +214,7 @@ def decompose(xform, angles=True):
# The process of finding the scaling factors and shear parameters
# is interleaved. First, find s_x = |M'_1|.
sx = np.sqrt(, M1))
M1 /= sx
# Then, compute an initial value for the xy shear factor,
# s_xy = M'_1 * M'_2. (this is too large by the y scaling factor).
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment