フィルターのクリア

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

2 ビュー (過去 30 日間)
zohre saeedi
zohre saeedi 2016 年 7 月 15 日
編集済み: zohre saeedi 2016 年 7 月 16 日
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 件のコメント
Brendan Hamm
Brendan Hamm 2016 年 7 月 15 日
Use the '{} Code' button to format your code please.

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeGeometric Transformation and Image Registration についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by