Esempio n. 1
0
 // Token: 0x060029B4 RID: 10676 RVA: 0x000D4A5C File Offset: 0x000D2E5C
 public PointF[] GetDepthFrameToCameraSpaceTable()
 {
     if (this._pNative == IntPtr.Zero)
     {
         throw new ObjectDisposedException("CoordinateMapper");
     }
     if (this._DepthFrameToCameraSpaceTable == null)
     {
         FrameDescription frameDescription = KinectSensor.GetDefault().DepthFrameSource.FrameDescription;
         this._DepthFrameToCameraSpaceTable = new PointF[frameDescription.Width * frameDescription.Height];
         SmartGCHandle smartGCHandle = new SmartGCHandle(GCHandle.Alloc(this._DepthFrameToCameraSpaceTable, GCHandleType.Pinned));
         IntPtr        outCollection = smartGCHandle.AddrOfPinnedObject();
         CoordinateMapper.Windows_Kinect_CoordinateMapper_GetDepthFrameToCameraSpaceTable(this._pNative, outCollection, (uint)this._DepthFrameToCameraSpaceTable.Length);
         ExceptionHelper.CheckLastError();
     }
     return(this._DepthFrameToCameraSpaceTable);
 }