Exemplo n.º 1
0
 private void расширениеToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (pictureBox1.Enabled && !backgroundWorker1.IsBusy)
     {
         Filters filter = new Dilation(structelem.mask, 1, 0);
         backgroundWorker1.RunWorkerAsync(filter);
     }
 }
Exemplo n.º 2
0
 public Opening(int[,] mask)
 {
     erosion   = new Erosion(mask, 2, 0);
     dilation  = new Dilation(mask, 2, 50);
     this.mask = mask;
 }
Exemplo n.º 3
0
 public BlackHat(int[,] mask)
 {
     dilation  = new Dilation(mask, 2, 0);
     this.mask = mask;
 }