private void StartBodyStream() { // Init infr buffer BodyFrame frame = Body = new BodyFrame(); frame.Width = Color.Width; frame.Height = Color.Height; frame.RawData = new Body[6]; // FIXME frame.Bodies = new List <NBody>(6); frame.Stamp = new Timestamp(); AddOnManager.GetInstance().InitFrame(Name, frame); Log(frame.ToString()); // Start Watch BodyWatch = new StopwatchAvg(); }
private void StartBodyIndexStream() { // Get frame description for the infr output var description = Sensor.BodyIndexFrameSource.FrameDescription; // Init infr buffer BodyIndexFrame frame = BodyIndex = new BodyIndexFrame(); frame.Width = description.Width; frame.Height = description.Height; frame.Pixels = new byte[description.LengthInPixels]; frame.Stamp = new Timestamp(); AddOnManager.GetInstance().InitFrame(Name, frame); Log(frame.ToString()); // Start Watch BodyIndexWatch = new StopwatchAvg(); }
private void StartColorStream() { // Get frame description for the infr output var description = Sensor.ColorFrameSource.FrameDescription; // Init infr buffer ColorFrame frame = Color = new ColorFrame(); frame.Width = description.Width; frame.Height = description.Height; frame.Pixels = new byte[description.LengthInPixels * 4]; frame.Stamp = new Timestamp(); frame.Fps = 15; AddOnManager.GetInstance().InitFrame(Name, frame); Log(frame.ToString()); // Start Watch ColorWatch = new StopwatchAvg(); }
private void StartBodyStream() { // Init infr buffer BodyFrame frame = Body = new BodyFrame(); frame.Width = Color.Width; frame.Height = Color.Height; frame.RawData = new Body[6]; // FIXME frame.Bodies = new List<NBody>(6); frame.Stamp = new Timestamp(); AddOnManager.GetInstance().InitFrame(Name, frame); Log(frame.ToString()); // Start Watch BodyWatch = new StopwatchAvg(); }