Accord.Tests.Imaging.ToolsTest.ToBitmapTest C# (CSharp) Method

ToBitmapTest() private method

private ToBitmapTest ( ) : void
return void
        public void ToBitmapTest()
        {
            double[] array = 
            {
                0,0,0,
                0,1,0,
                0,0,0,
            };

            int width = 3;
            int height = 3;
            double min = 0;
            double max = 1;

            Bitmap actual = Accord.Imaging.Tools.ToBitmap(array, width, height, min, max);

            double[] actualarray = actual.ToDoubleArray(0, min, max);

            Assert.IsTrue(Matrix.IsEqual(array, actualarray));

        }