public override Bitmap processImage(Bitmap sourceImage, BackgroundWorker worker) { dilation dilat; erosion eros; dilat = new dilation(); eros = new erosion(); return(dilat.processImage(eros.processImage(sourceImage, worker), worker)); }
private void dilationToolStripMenuItem_Click(object sender, EventArgs e) { Filters filter = new dilation(); backgroundWorker1.RunWorkerAsync(filter); }