public void InvalidCreation()
 {
     var kernel = new int[, ]
     {
         { 1, 2, 3 },
         { 4, 5, 6 }
     };
     var filter = new LinearFilter(0d, kernel);
 }
        public void ValidCreation()
        {
            var multiplier = 2d;
            var kernel     = new int[, ]
            {
                { 1, 2, 3 },
                { 4, 5, 6 },
                { 7, 8, 9 }
            };
            var filter = new LinearFilter(multiplier, kernel);

            Assert.AreEqual(kernel.Length, filter.Kernel.Length);
        }
Ejemplo n.º 3
0
        private void minMenuItem_Click(object sender, RoutedEventArgs e)
        {
            IImageFilter linearFilter = new LinearFilter(LinearFilter.LinearType.Min);

            this.UseFilter(linearFilter);
        }