Пример #1
0
 void StopColorImage()
 {
     if (_colorImageStream != null)
     {
         _colorImageStream.Dispose();
         _colorImageStream = null;
     }
 }
Пример #2
0
 void StopDepthImage()
 {
     if (_depthImageStream != null)
     {
         _depthImageStream.Dispose();
         _depthImageStream = null;
     }
 }
Пример #3
0
 void StopColorImage()
 {
     if (_colorImageStream != null)
     {
         _colorImageStream.Dispose();
         _colorImageStream = null;
     }
 }
Пример #4
0
        void CreateDepthImageStream(IntPtr waitHandle, KinectImageResolution resolution)
        {
            StopDepthImage();
            if (resolution == KinectImageResolution.None)
            {
                return;
            }

            var    type           = Nui.NuiImageType.DepthAndPlayerIndex;
            IntPtr phStreamHandle = _sensor.NuiImageStreamOpen(type, resolution.ToNui()
                                                               , 0, 2, waitHandle);

            _depthImageStream = new KinectImageStream(phStreamHandle, waitHandle, resolution, 2);
        }
Пример #5
0
        void CreateColorImageStream(IntPtr waitHandle, KinectImageResolution resolution)
        {
            StopColorImage();
            if (resolution == KinectImageResolution.None)
            {
                return;
            }

            var type = Nui.NuiImageType.Color;
            IntPtr phStreamHandle=_sensor.NuiImageStreamOpen(type, resolution.ToNui()
                , 0
                , 2, waitHandle);
            _colorImageStream = new KinectImageStream(phStreamHandle, waitHandle, resolution, 4);
        }
Пример #6
0
        void CreateColorImageStream(IntPtr waitHandle, KinectImageResolution resolution)
        {
            StopColorImage();
            if (resolution == KinectImageResolution.None)
            {
                return;
            }

            var    type           = Nui.NuiImageType.Color;
            IntPtr phStreamHandle = _sensor.NuiImageStreamOpen(type, resolution.ToNui()
                                                               , 0
                                                               , 2, waitHandle);

            _colorImageStream = new KinectImageStream(phStreamHandle, waitHandle, resolution, 4);
        }
Пример #7
0
 void StopDepthImage()
 {
     if (_depthImageStream != null)
     {
         _depthImageStream.Dispose();
         _depthImageStream = null;
     }
 }
Пример #8
0
        void CreateDepthImageStream(IntPtr waitHandle, KinectImageResolution resolution)
        {
            StopDepthImage();
            if (resolution == KinectImageResolution.None)
            {
                return;
            }

            var type = Nui.NuiImageType.DepthAndPlayerIndex;
            IntPtr phStreamHandle = _sensor.NuiImageStreamOpen(type, resolution.ToNui()
                , 0, 2, waitHandle);
            _depthImageStream = new KinectImageStream(phStreamHandle, waitHandle, resolution, 2);
        }