public override Bitmap processImage(Bitmap sourceImage, BackgroundWorker worker) { Closing closing; if (this.kernel == null) { closing = new Closing(); } else { closing = new Closing(this.kernel); } Subtraction subtraction = new Subtraction(closing.processImage(sourceImage, worker)); return(subtraction.processImage(sourceImage, worker)); }
private void couToolStripMenuItem_Click(object sender, EventArgs e) { Filters filter = new Closing(); backgroundWorker1.RunWorkerAsync(filter); }