Accord.Tests.Imaging.RawMomentsTest.RawMomentsConstructorTest3 C# (CSharp) Method

RawMomentsConstructorTest3() private method

private RawMomentsConstructorTest3 ( ) : void
return void
        public void RawMomentsConstructorTest3()
        {
            float[,] img = 
            {
                { 1, 2, 3, 4, 5 },
                { 6, 7, 8, 9, 10 },
                { 11, 12, 13, 14, 15 },
                { 16, 17, 18, 19, 20 },
            };

            double sum = img.Sum();

            RawMoments raw = new RawMoments(img);

            Assert.AreEqual(sum, raw.M00);
        }
    }