internal static byte[] GetPixelArrayFrame(this InfraredFrame infraredFrame)
        {
            var frameData = new ushort[infraredFrame.FrameDescription.LengthInPixels];
            var pixels    = infraredFrame.GetNewPixelArray();

            infraredFrame.CopyToFrameToPixelArray(ref frameData, ref pixels);

            return(pixels);
        }