Exemplo 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
        }
Exemplo 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();
            }
        }
Exemplo 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;
            }
        }
Exemplo n.º 4
0
 public LHDepthFrame(Microsoft.Kinect.DepthFrame df, ClosestBodyFrame cbf) : base(df, cbf)
 {
     Type = FrameType.LHDepth;
 }
Exemplo n.º 5
0
 public HeadColorFrame(Microsoft.Kinect.ColorFrame cf, ClosestBodyFrame cbf) : base(cf, cbf)
 {
     Type = FrameType.HeadColor;
 }