Exemplo n.º 1
0
        public override Bitmap ProcessImage(Bitmap sourceImage, BackgroundWorker worker)
        {
            Dilation dilation = new Dilation();
            Erosion  erosion  = new Erosion();

            return(erosion.ProcessImage(dilation.ProcessImage(sourceImage, worker), worker));
        }
Exemplo n.º 2
0
 private void сужениеToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (flag)
     {
         Filters filter = new Erosion(mask);
         backgroundWorker.RunWorkerAsync(filter);
     }
     else
     {
         Filters filter = new Erosion();
         backgroundWorker.RunWorkerAsync(filter);
     }
 }