Exemplo n.º 1
0
        private void расширениеToolStripMenuItem1_Click(object sender, EventArgs e)
        {
            int[,] mask = null;
            mask        = new int[, ] {
                { 1, 0, 1 }, { 0, 0, 0 }, { 1, 0, 1 }
            };
            Filters filter = new Dilation(mask);

            backgroundWorker1.RunWorkerAsync(filter);
        }
Exemplo n.º 2
0
 public Grad(int[,] mask)
 {
     dilation  = new Dilation(mask);
     erosion   = new Erosion(mask);
     this.mask = mask;
 }
Exemplo n.º 3
0
 public Opening(int[,] mask)
 {
     erosion   = new Erosion(mask);
     dilation  = new Dilation(mask);
     this.mask = mask;
 }