public override Bitmap processImage(Bitmap sourceImage, BackgroundWorker worker) { Filtres erosion = new Erosion(); Filtres dilation = new Dilation(); Bitmap resultImage = erosion.processImage(sourceImage, worker); resultImage = dilation.processImage(resultImage, worker); return(resultImage); }
private void расширениеToolStripMenuItem_Click(object sender, EventArgs e) { Filtres filter = new Dilation(); backgroundWorker1.RunWorkerAsync(filter); }