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