Пример #1
0
 public void InitializeInfraredStream()
 {
     this.infraredFrameReader = this.kinectSensor.InfraredFrameSource.OpenReader();
     infraredHandler          = InfraredHandler.Instance;
     infraredHandler.InfraredHandlerSet(this.kinectSensor.InfraredFrameSource.FrameDescription);
     //this.indraredBitmap = new WriteableBitmap(infraredHandler.Width, infraredHandler.Height, 96.0, 96.0, PixelFormats.Gray32Float, null);
     infraredHandler.SetShowState(false);
 }
Пример #2
0
        public PreviewWindow()
        {
            InitializeComponent();

            ch = ColorHandler.Instance;
            ch.openReader();

            bh = BodyIndexHandler.Instance;
            bh.openReader();

            dh = DepthHandler.Instance;
            dh.startReading();

            ih = InfraredHandler.Instance;
            ih.startReading();

            sh = SkeletonHandler.Instance;
            sh.openReader();

            depthPreviewBitmap    = new WriteableBitmap(dh.Width, dh.Height, 96.0, 96.0, PixelFormats.Gray16, null);
            infraredPreviewBitmap = new WriteableBitmap(ih.Width, ih.Height, 96.0, 96.0, PixelFormats.Gray16, null);

            ComponentDispatcher.ThreadIdle += new System.EventHandler(ComponentDispatcher_ThreadIdle);
        }