필터 지우기
필터 지우기

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?

답변 (0개)

카테고리

Help CenterFile Exchange에서 Geometric 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