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(); }