Effacer les filtres
Effacer les filtres

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

2 vues (au cours des 30 derniers jours)
zohre saeedi
zohre saeedi le 15 Juil 2016
Modifié(e) : zohre saeedi le 16 Juil 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?
  1 commentaire
Brendan Hamm
Brendan Hamm le 15 Juil 2016
Use the '{} Code' button to format your code please.

Connectez-vous pour commenter.

Réponses (0)

Catégories

En savoir plus sur Geometric Transformation and Image Registration dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by