Hi, I have:
B=A*T+error
I would like a fast way to estimate transformation matrix (on Matlab if possible) that minimize the error where:
B and A are two matrix of N 2d points coordinates:
A=[Xi Yi 1] , B=[Xi' Yi']
and T: 2d transformation matrix ( tx, ty for translation, r for rotation and sx,sy for scale)
T=|Sx*cos(r) -Sy*sin(r)|
|Sx*sin(r) Sy*cos(r) |
|tx ty |
where:
-pi/4