【问题标题】:explanation of matrix - augmented reality browser using android矩阵的解释 - 使用android的增强现实浏览器
【发布时间】:2013-11-22 06:34:10
【问题描述】:

我正在开发增强现实相机应用程序,其中附近的位置将在相机屏幕上得到增强。我需要找到设备的方向。我正在使用带磁传感器的加速度计传感器。我正在从 github 上的代码中学习所有这些。

  • 我无法理解这个matrix class. 任何人都可以请 告诉我 a1,a2,.....c2,c3 是什么?

    私有易失浮点 a1=0f, a2=0f, a3=0f;

    私有易失浮点 b1=0f, b2=0f, b3=0f;

    私有易失浮点 c1=0f, c2=0f, c3=0f;

这是使用此矩阵类的SensorActivity。

  • 还告诉我为什么我需要使用这个 9 值矩阵以及哪个 值需要传递给这个矩阵类。

    例如在 SensorActivity 中为什么我们使用 angleX 和 angleY。

     double angleX = Math.toRadians(-90);
    
     double angleY = Math.toRadians(-90);
    
        xAxisRotation.set( 1f, 
                0f, 
                0f, 
                0f, 
                (float) Math.cos(angleX), 
                (float) -Math.sin(angleX), 
                0f, 
                (float) Math.sin(angleX), 
                (float) Math.cos(angleX));
    

那么,什么是angleX和angleY。所有这些参数是什么?

【问题讨论】:

    标签: android accelerometer augmented-reality android-sensors


    【解决方案1】:

    您应该先阅读此内容:http://en.wikipedia.org/wiki/Rotation_matrix

    转到上述链接中的基本旋转,找到您正在寻找的确切内容

    在您的具体示例中,如果您计算矩阵,则会得到单位矩阵 http://en.wikipedia.org/wiki/Identity_matrix

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2010-10-28
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多