public override Bitmap processImage(Bitmap sourceImage, BackgroundWorker worker) { Filtres medianFilter = new Median(); Filtres sobel = new Sobel(); Filtres maxFilter = new MaxFilter(); Bitmap resultImage = medianFilter.processImage(sourceImage, worker); resultImage = sobel.processImage(resultImage, worker); resultImage = maxFilter.processImage(resultImage, worker); return(resultImage); }
private void медианныйToolStripMenuItem1_Click(object sender, EventArgs e) { Filtres filter = new Median(); backgroundWorker1.RunWorkerAsync(filter); }