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