why point correspondence to rotation matrix calculation is not my expected?
8 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
cui,xingxing
am 11 Mai 2022
Kommentiert: cui,xingxing
am 10 Okt. 2022
for example, at first ,one point P1(1,0,0) rotate pi/2 angle by y-axis,then get the point P2(0,0,-1), then rotate pi/2 angle by x-axis, then get the point P3(0,1,0). i use eul2rotm function to specify eular angle to get rotation matrix,then get the destination point by premultipy format,but get the result is not my expected P3?
P1 = [1,0,0];
eular = [0,pi/2,pi/2]
r = eul2rotm(eular,'ZYX'); % premultipy format
destinationPt = r*P1' % not same as P3 ?
if i take eular decompose into two component, ie rotate pi/2 angle correspondance to y-axis,x-axis, then i can get my expected result P3.
eularY = [0,pi/2,0];
eularX = [0,0,pi/2];
ry = eul2rotm(eularY);
rx = eul2rotm(eularX);
destiPt = rx*ry*P1' % is same as P3, which is my expect result.
i don't understand why eular angles vector three components not write together?
0 Kommentare
Akzeptierte Antwort
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Image Processing and Computer Vision 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!