Skip to Content

avec transformations.py

  1. import transformations
  2. m = 12609
  3. n = 8810
  4. fp = [[1,m,m,1],[1,1,n,n]]
  5. tp = [[1616411.91,1617482.52,1617503.82,1616433.22],[9173672.33,9173641.84,9174389.85,9174420.34]]
  6. M = transformations.affine_matrix_from_points(fp, tp)
  7. print M
  8. array([[ 8.49147367e-02, 2.41854921e-03, 1.61641183e+06],
  9. [ -2.41830584e-03, 8.49142922e-02, 9.17367225e+06],
  10. [ 0.00000000e+00, 0.00000000e+00, 1.00000000e+00]])