本文介绍了OpenCV,OpenGL和Android Sensor之间的参考坐标系更改的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 OpenCV Android OpenGL 进行增强现实"项目.据我所知,OpenGL中的协调系统是

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

OpenCV坐标系为:

The OpenCV coordinate system is:

将这些设备与android传感器结合使用时,如何进行坐标系转换和[R | t]矩阵转换?是否有好的教程或文档对所有这些令人困惑的内容都进行了解释?

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?

推荐答案

如果看图片,您会看到两个坐标系具有相同的手法,但是OpenCV的pi绕x轴旋转了.可以通过以下旋转矩阵来表示:

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

这篇关于OpenCV,OpenGL和Android Sensor之间的参考坐标系更改的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-06 05:28