public override Bitmap processImage(Bitmap sourceImage, BackgroundWorker worker) { Dilation dil = new Dilation(kernel); Erosion eros = new Erosion(kernel); return(eros.processImage(dil.processImage(sourceImage, worker), worker)); }
private void СужениеToolStripMenuItem_Click(object sender, EventArgs e) { Filters filter = new Erosion(se); backgroundWorker1.RunWorkerAsync(filter); }