Beispiel #1
0
 public MultiSourceFrameArrivedEventArgs(long timestamp, Microsoft.Kinect.ColorFrame colorFrame,
                                         Microsoft.Kinect.DepthFrame depthFrame, Microsoft.Kinect.BodyFrame bodyFrame,
                                         Microsoft.Kinect.BodyIndexFrame bodyIndexFrame, Microsoft.Kinect.InfraredFrame infraredFrame) : base(timestamp)
 {
     ColorFrame     = colorFrame;
     DepthFrame     = depthFrame;
     BodyFrame      = bodyFrame;
     BodyIndexFrame = bodyIndexFrame;
     InfraredFrame  = infraredFrame;
 }
        public SegmentedDepthFrame(Microsoft.Kinect.DepthFrame df, ClosestBodyFrame cbf) : base(df)
        {
            underlyingClosestBodyFrame = cbf;

            SetCenter();

            // If unable to segment, then the reader should return a null frame
            segmented = Segment();

            if (segmented)
            {
                Threshold();
            }
        }