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 Dilation(se); backgroundWorker1.RunWorkerAsync(filter); }