Example #1
0
        public int[,] MinFilter(int[,] pixels)
        {
            int size = 3;
            FilterBase filter = new MinMaxFilter(Filters.MinMaxFilter.Mode.Min, size);
            int[,] result = filter.Execute(pixels);

            return result;
        }
Example #2
0
        public int[,] MinMaxFilter(int[,] pixels)
        {
            int size = 3;
            FilterBase filterMin = new MinMaxFilter(Filters.MinMaxFilter.Mode.Min, size);
            FilterBase filterMax = new MinMaxFilter(Filters.MinMaxFilter.Mode.Max, size);
            // Chains ??
            int[,] result = filterMax.Execute(filterMin.Execute(pixels));

            return result;
        }