Exemple #1
0
        /// <summary>
        /// Get the intrinsic matrix of rgb camera.
        /// </summary>
        /// <returns></returns>
        public static NativeMat3f GetRGBCameraIntrinsicMatrix()
        {
            NativeMat3f result = new NativeMat3f();

            NRDevice.Instance.NativeHMD.GetCameraIntrinsicMatrix(NativeEye.RGB, ref result);
            return(result);
        }
Exemple #2
0
        public bool GetCameraIntrinsicMatrix(NativeEye eye, ref NativeMat3f CameraIntrinsicMatix)
        {
            if (eye != NativeEye.RGB)
            {
                Debug.LogError("[NativeHMD] Only for rgb camera now. Not support this camera:" + eye.ToString());
                return(false);
            }
            var result = NativeApi.NRHMDGetCameraIntrinsicMatrix(m_HmdHandle, (int)eye, ref CameraIntrinsicMatix);

            return(true);
        }
Exemple #3
0
 public static extern NativeResult NRHMDGetCameraIntrinsicMatrix(
     UInt64 hmd_handle, int eye, ref NativeMat3f out_intrinsic_matrix);