Azzera filtri
Azzera filtri

how to find scaling,rotate,translate values of affine transform?

2 visualizzazioni (ultimi 30 giorni)
I have 2 triangle .I want to find translate, scale, rotation values between them in matlab. I use affine transform for it .my code is:
A.x=[309;367;295];
A.y=[292;259;277];
Aprim.x=[267;211;265];
Aprim.y=[301;222;325];
A_xprim(1:3,1)= transpose(Aprim.x(1,1:3));
A_yprim(1:3,1)=transpose(Aprim.y(1,1:3));
Ax(1:3,1)= transpose(A.x(1,1:3));
Ay(1:3,1)=transpose(A.y(1,1:3));
tform = maketform('affine',[A_xprim(1:3,1) A_yprim(1:3,1)],[ Ax(1:3,1) Ay(1:3,1)]);
but my output are: tform.Tdata.T=[-0.196 1.120 0;-0.716 0.200 0;498.66 -56.004 1] tform.Tdata.Tinv=[0.262 -1.467 0;0.938 -0.257 0;-78.272 717.215 1]
which elements are scaling,translate,rotate value?

Risposte (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by