Filter löschen
Filter löschen

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

2 Ansichten (letzte 30 Tage)
zohre saeedi
zohre saeedi am 15 Jul. 2016
Bearbeitet: zohre saeedi am 16 Jul. 2016
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?

Antworten (0)

Kategorien

Mehr zu Geometric Transformation and Image Registration finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by