opengl-es - OpenCV、OpenGL 和 Android Sensor 之间引用坐标系的变化

标签 opengl-es opencv rotation android-sensors coordinate-transformation

我正在使用 OpenCVAndroidOpenGL 进行增强现实项目。据我所知,OpenGL 中的坐标系是

enter image description here

OpenCV坐标系为:

enter image description here

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

最佳答案

如果您查看图片,您会发现两个坐标系具有相同的旋向,但 OpenCV 坐标系绕 x 轴旋转了 pi。这可以用以下旋转矩阵表示:

 1  0  0
 0 -1  0
 0  0 -1

关于opengl-es - OpenCV、OpenGL 和 Android Sensor 之间引用坐标系的变化,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9081900/

相关文章:

c++ - 二叉搜索树左旋转

ios - 每次单击按钮时将 UIButton 旋转 90 度

android - 从 0,0 坐标在 OpenGL Android 中绘制纹理

android - 在 Android 上的 OpenGL 程序中调用 glViewport 是必要的吗?

c++ - iOS 从 openCV cv::Point 获取 CGPoint

c++ - 如何在OpenCV中使用交叉验证?

ios - 仅在一个 ViewController 中旋转

c++ - 我的头文件 (.h) 太大,无法在 opengl es 2 中渲染 3d 模型

opengl-es - 使用 OpenGL ES 2.0 在 glBufferData 中加载顶点

opencv - OpenCV 2.3 中的 Mat(逻辑)运算符 '>='