Ejemplo n.º 1
0
        public virtual int MapCameraPointToColorSpace(
            _CameraSpacePoint cameraPoint,
            out _ColorSpacePoint colorPoint
            )
        {
            var fp = GetFunctionPointer(7);

            if (m_MapCameraPointToColorSpaceFunc == null)
            {
                m_MapCameraPointToColorSpaceFunc = (MapCameraPointToColorSpaceFunc)Marshal.GetDelegateForFunctionPointer(fp, typeof(MapCameraPointToColorSpaceFunc));
            }

            return(m_MapCameraPointToColorSpaceFunc(m_ptr, cameraPoint, out colorPoint));
        }
Ejemplo n.º 2
0
        public virtual int MapDepthPointToCameraSpace(
            _DepthSpacePoint depthPoint,
            ushort depth,
            out _CameraSpacePoint cameraPoint
            )
        {
            var fp = GetFunctionPointer(8);

            if (m_MapDepthPointToCameraSpaceFunc == null)
            {
                m_MapDepthPointToCameraSpaceFunc = (MapDepthPointToCameraSpaceFunc)Marshal.GetDelegateForFunctionPointer(fp, typeof(MapDepthPointToCameraSpaceFunc));
            }

            return(m_MapDepthPointToCameraSpaceFunc(m_ptr, depthPoint, depth, out cameraPoint));
        }
Ejemplo n.º 3
0
        public virtual int MapColorFrameToCameraSpace(
            uint depthDataPointCount,
            ref ushort depthFrameData,
            uint cameraPointCount,
            out _CameraSpacePoint cameraSpacePoints
            )
        {
            var fp = GetFunctionPointer(17);

            if (m_MapColorFrameToCameraSpaceFunc == null)
            {
                m_MapColorFrameToCameraSpaceFunc = (MapColorFrameToCameraSpaceFunc)Marshal.GetDelegateForFunctionPointer(fp, typeof(MapColorFrameToCameraSpaceFunc));
            }

            return(m_MapColorFrameToCameraSpaceFunc(m_ptr, depthDataPointCount, ref depthFrameData, cameraPointCount, out cameraSpacePoints));
        }
Ejemplo n.º 4
0
        public virtual int MapCameraPointsToColorSpace(
            uint cameraPointCount,
            ref _CameraSpacePoint cameraPoints,
            uint colorPointCount,
            out _ColorSpacePoint colorPoints
            )
        {
            var fp = GetFunctionPointer(11);

            if (m_MapCameraPointsToColorSpaceFunc == null)
            {
                m_MapCameraPointsToColorSpaceFunc = (MapCameraPointsToColorSpaceFunc)Marshal.GetDelegateForFunctionPointer(fp, typeof(MapCameraPointsToColorSpaceFunc));
            }

            return(m_MapCameraPointsToColorSpaceFunc(m_ptr, cameraPointCount, ref cameraPoints, colorPointCount, out colorPoints));
        }
Ejemplo n.º 5
0
        public virtual int MapDepthPointsToCameraSpace(
            uint depthPointCount,
            ref _DepthSpacePoint depthPoints,
            uint depthCount,
            ref ushort depths,
            uint cameraPointCount,
            out _CameraSpacePoint cameraPoints
            )
        {
            var fp = GetFunctionPointer(12);

            if (m_MapDepthPointsToCameraSpaceFunc == null)
            {
                m_MapDepthPointsToCameraSpaceFunc = (MapDepthPointsToCameraSpaceFunc)Marshal.GetDelegateForFunctionPointer(fp, typeof(MapDepthPointsToCameraSpaceFunc));
            }

            return(m_MapDepthPointsToCameraSpaceFunc(m_ptr, depthPointCount, ref depthPoints, depthCount, ref depths, cameraPointCount, out cameraPoints));
        }