Esempio n. 1
0
        public SegmentedColorFrame(Microsoft.Kinect.ColorFrame cf, ClosestBodyFrame cbf) : base(cf)
        {
            underlyingClosestBodyFrame = cbf;

            SetCenter();

            // If unable to segment, then the reader should return a null frame
            segmented = Segment();
            // No need to threshold because there is no depth data
        }
Esempio n. 2
0
        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();
            }
        }
Esempio n. 3
0
        public ClosestFaceFrame(FaceFrameResult faceFrameResult, ClosestBodyFrame closestBodyFrame)
        {
            Type = FrameType.ClosestFace;

            if (faceFrameResult != null && closestBodyFrame != null && faceFrameResult.TrackingId == closestBodyFrame.TrackingId)
            {
                this.closestBodyFrame = closestBodyFrame;
                this.faceFrameResult  = faceFrameResult;
                FaceFound             = true;
            }
            else
            {
                FaceFound = false;
            }
        }
Esempio n. 4
0
 public LHDepthFrame(Microsoft.Kinect.DepthFrame df, ClosestBodyFrame cbf) : base(df, cbf)
 {
     Type = FrameType.LHDepth;
 }
Esempio n. 5
0
 public HeadColorFrame(Microsoft.Kinect.ColorFrame cf, ClosestBodyFrame cbf) : base(cf, cbf)
 {
     Type = FrameType.HeadColor;
 }