Accord.Tests.Imaging.BlendTest.ApplyTest C# (CSharp) Метод

ApplyTest() приватный Метод

private ApplyTest ( ) : void
Результат void
        public void ApplyTest()
        {
            var img1 = Accord.Imaging.Image.Clone(Properties.Resources.image2);
            var img2 = Accord.Imaging.Image.Clone(Properties.Resources.image2);

            MatrixH homography = new MatrixH(1, 0, 32,
                                             0, 1, 0,
                                             0, 0);

            Blend blend = new Blend(homography, img1);
            var actual = blend.Apply(img2);

            Assert.AreEqual(64, actual.Size.Width);
            Assert.AreEqual(32, actual.Size.Height);



            homography = new MatrixH(1, 0, 32,
                                     0, 1, 32,
                                     0, 0);

            blend = new Blend(homography, img1);
            actual = blend.Apply(img2);


            Assert.AreEqual(64, actual.Size.Width);
            Assert.AreEqual(64, actual.Size.Height);

            // ImageBox.Show(img3, PictureBoxSizeMode.Zoom);
        }