using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace S04_Projet
{
    class Filter
    {
        public static string[] Noms = new string[] {
            "Augmenter le contraste",
            "Flou",
            "Renforcement des bords",
            "Détection des bords",
            "Repoussage"
        };

        public static double[] Facteurs = new double[] { 1, 1 / 9.0, 1, 1, 1 };

        private static short[,] contrastPlus = new short[,]
        {
            { 0,-1, 0 },
            {-1, 5,-1 },
            { 0,-1, 0 }
        };

        private static short[,] flou = new short[,]
        {
            { 1, 1, 1 },
            { 1, 1, 1 },
            { 1, 1, 1 }
        };

        private static short[,] renforcement = new short[,]
        {
            { 0, 0, 0 },
            {-1, 1, 0 },
            { 0, 0, 0 }
        };

        private static short[,] detection = new short[,]
        {
            { 0, 1, 0 },
            { 1,-4, 1 },
            { 0, 1, 0 }
        };

        private static short[,] repoussage = new short[,]
        {
            {-2,-1, 0 },
            {-1, 1, 1 },
            { 0, 1, 2 }
        };

        public static List<short[,]> Filtres = new List<short[,]>() { contrastPlus, flou, renforcement, detection, repoussage };
    }
}
