OpenCV Q&A Forum - RSS feedhttp://answers.opencv.org/questions/OpenCV answersenCopyright <a href="http://www.opencv.org">OpenCV foundation</a>, 2012-2018.Wed, 28 Feb 2018 04:57:04 -0600How can I get the accuracy between two angles (euler or other)?http://answers.opencv.org/question/185672/how-can-i-get-the-accuracy-between-two-angles-euler-or-other/ Hi Together,
I have a board of marker and detect their angles in respect to the camera. I know that one marker to the other marker should have been rotated with 5° or an other already known angle about the z-Axis. Due to the camera - marker "relationship" is there always a "flip offset" of 180°-X (X is there because I captured the pictures not perpendicular). Now I get for instance the angle (euler ZYX):
A -178.155774553622°; -1.81510372911041°; 5.46620496345042° (rotated marker 5°)
B 175.347721071838°; -1.19249002241927°; -0.334586900200200° (reference "zero" marker 0°)
C -6.49650437453965 °; -0.622613706691140°; 5.80079186365062° (the difference between marker 5° and marker 0°)
D 0°; 0°; 5° (the difference it should be)
My problem is, that depending on the convention (XYZ/ZYX/ZXZ and so on...) there are alway different angles. I know that should be like that. But I don't know how to calculate the difference in a prober way, so that I can compare what the real difference over each axis is.
Is there any way to compare the angles in a better way, maybe not in euler angles but in a way to say "1° decree offset"?
Thank you very much
Sarahsarah1802Wed, 28 Feb 2018 04:57:04 -0600http://answers.opencv.org/question/185672/