least square method
[ ui vi ]' = [ a1 a2; a3 a4 ]*[ xi yi ]' + [ tx ty ]' A * x = B; A = [ x1 y1 0 0 1 0; x2 y2 0 0 1 0; : : : ......…………; ..................………; xn