コード例 #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);
        }
コード例 #2
0
 public Grad(int[,] mask)
 {
     dilation  = new Dilation(mask);
     erosion   = new Erosion(mask);
     this.mask = mask;
 }
コード例 #3
0
 public Opening(int[,] mask)
 {
     erosion   = new Erosion(mask);
     dilation  = new Dilation(mask);
     this.mask = mask;
 }