public void TestNightFilter()
        {
            Filter imageFilter = new Filter();

            String path = System.AppDomain.CurrentDomain.BaseDirectory.ToString().Replace("bin\\Debug", "Resources/swissNight.png").Replace("\\", "/");

            Bitmap exeptedImage = new Bitmap(path);

            Bitmap result = imageFilter.ApplyFilter(basePicture, 1, 1, 1, 25);

            ImageComparaison.AreEqual(result, exeptedImage);
        }
Exemplo n.º 2
0
        public void TestPrewittFilter()
        {
            Edge imageEdge = new Edge();

            String path = System.AppDomain.CurrentDomain.BaseDirectory.ToString().Replace("bin\\Debug", "Resources/swissPrewitt.png").Replace("\\", "/");

            Bitmap exeptedImage = new Bitmap(path);

            Bitmap result = imageEdge.PrewittFilter(basePicture);

            ImageComparaison.AreEqual(result, exeptedImage);
        }