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