Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Reference coordinate system changes between OpenCV, OpenGL and Android Sensor

I am working with OpenCV, Android and OpenGL for an Augmented Reality project. As far as I know the coordintate system in OpenGL is

enter image description here

The OpenCV coordinate system is:

enter image description here

When combining these devices with android sensors how can I do the coordinate system conversions and [R|t] matrix conversion? Is there a good tutorial or documentation were all of this conffusing stuff is explained?

like image 923
Jav_Rock Avatar asked Jan 31 '12 15:01

Jav_Rock


1 Answers

If you look at the picture, then you see, that the both coordinate systems have the same handednes, but the OpenCV one is rotated by pi around the x axis. This can be represented by the following rotation matrix:

 1  0  0
 0 -1  0
 0  0 -1
like image 71
datenwolf Avatar answered Sep 27 '22 23:09

datenwolf