Note that there are some explanatory texts on larger screens.

plurals
  1. POhow to perform coordinates affine transformation using python? part 2
    text
    copied!<p>I have same problem as described here: <a href="https://stackoverflow.com/questions/8873462/how-to-perform-coordinates-affine-transformation-using-python?answertab=votes#tab-top">how to perform coordinates affine transformation using python?</a></p> <p>I was trying to use method described but some reason I will get error messages. Changes I made to code was to replace primary system and secondary system points. I created secondary coordinate points by using different origo. In real case for which I am studying this topic will have some errors when measuring the coordinates.</p> <blockquote> <pre><code>primary_system1 = (40.0, 1160.0, 0.0) primary_system2 = (40.0, 40.0, 0.0) primary_system3 = (260.0, 40.0, 0.0) primary_system4 = (260.0, 1160.0, 0.0) secondary_system1 = (610.0, 560.0, 0.0) secondary_system2 = (610.0,-560.0, 0.0) secondary_system3 = (390.0, -560.0, 0.0) secondary_system4 = (390.0, 560.0, 0.0) </code></pre> </blockquote> <p>Error I get from when executing is following.</p> <pre><code>*Traceback (most recent call last): File "affine_try.py", line 57, in &lt;module&gt; secondary_system3, secondary_system4 ) File "affine_try.py", line 22, in solve_affine A2 = y * x.I File "/usr/lib/python2.7/dist-packages/numpy/matrixlib/defmatrix.py", line 850, in getI return asmatrix(func(self)) File "/usr/lib/python2.7/dist-packages/numpy/linalg/linalg.py", line 445, in inv return wrap(solve(a, identity(a.shape[0], dtype=a.dtype))) File "/usr/lib/python2.7/dist-packages/numpy/linalg/linalg.py", line 328, in solve raise LinAlgError, 'Singular matrix' numpy.linalg.linalg.LinAlgError: Singular matrix* </code></pre> <p>What might be the problem ?</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload