Accord.Tests.Imaging.IntegralImage2Test.create C# (CSharp) Method

create() private static method

private static create ( byte img, PixelFormat format ) : ].long[
img byte
format PixelFormat
return ].long[
        private static long[,] create(byte[,] img, PixelFormat format)
        {
            long[,] actual8bpp;
            Bitmap image;
            MatrixToImage converter = new MatrixToImage();
            converter.Format = format;
            converter.Convert(img, out image);

            Assert.AreEqual(format, image.PixelFormat);

            IntegralImage2 ii8bpp = IntegralImage2.FromBitmap(image, 0);
            actual8bpp = ii8bpp.Image;
            return actual8bpp;
        }