public MultiFrameStreamOne(MultiFrameTypes frameTypes, KinectOne kinect)
 {
     FrameTypes   = frameTypes;
     _kinectOne   = kinect;
     _multiReader = _kinectOne.KinectSensor.OpenMultiSourceFrameReader((FrameSourceTypes)(int)frameTypes);
     _multiReader.MultiSourceFrameArrived += MultiReaderOnMultiSourceFrameArrived;
 }
        public MultiFrameStream360(Kinect360 kinect, MultiFrameTypes frameTypes, bool preferResolutionOverFps)
        {
            _kinect360 = kinect;
            var colorImageFormat = preferResolutionOverFps
                ? ColorImageFormat.RgbResolution1280x960Fps12
                : ColorImageFormat.RgbResolution640x480Fps30;

            (_kinect360.ColorFrameStream as ColorFrameStream360).ColorImageFormat = ColorImageFormat.RgbResolution1280x960Fps12;
            _kinect360.KinectSensor.ColorStream.Enable(colorImageFormat);
            _kinect360.KinectSensor.SkeletonStream.Enable();
            _kinect360.KinectSensor.DepthStream.Enable();
            _kinect360.Open();
            _kinect360.KinectSensor.AllFramesReady += KinectSensor_AllFramesReady;
            FrameTypes = frameTypes;
        }
Exemplo n.º 3
0
 public IMultiFrameStream OpenMultiManager(MultiFrameTypes frameTypes, bool preferResolutionOverFps = false)
 {
     return(new MultiFrameStreamOne(frameTypes, this));
 }
Exemplo n.º 4
0
 public IMultiFrameStream OpenMultiManager(MultiFrameTypes frameTypes, bool preferResolutionOverFps = true)
 {
     return(new MultiFrameStream360(this, frameTypes, preferResolutionOverFps));
 }