Esempio 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);
        }
Esempio n. 2
0
 public Grad(int[,] mask)
 {
     dilation  = new Dilation(mask);
     erosion   = new Erosion(mask);
     this.mask = mask;
 }
 public Opening(int[,] mask)
 {
     erosion   = new Erosion(mask);
     dilation  = new Dilation(mask);
     this.mask = mask;
 }