public override Bitmap processImage(Bitmap sourceImage, BackgroundWorker worker) { Filters filter1 = new Dilation(mask); Bitmap result = filter1.processImage(sourceImage, worker); Filters filter2 = new Erosion(mask); result = filter2.processImage(result, worker); return(result); }
private void расширениеToolStripMenuItem_Click(object sender, EventArgs e) { Filters filter = new Dilation(structElem); backgroundWorker1.RunWorkerAsync(filter); }