public override Bitmap processImage(Bitmap sourceImage, BackgroundWorker bgWorker) { OpeningFilter of = new OpeningFilter(_kwidth, _kheight, _kmatrix); openedImage = of.processImage(sourceImage, bgWorker); return(base.processImage(sourceImage, bgWorker)); }
private void openingToolStripMenuItem_Click(object sender, EventArgs e) { OpeningFilter of = new OpeningFilter(mmkWidth, mmkHeight, mmkMatrix); backgroundWorker1.RunWorkerAsync(of); }
//морфологические private void открытиеToolStripMenuItem_Click_1(object sender, EventArgs e) { Filters filter = new OpeningFilter(); backgroundWorker1.RunWorkerAsync(filter); }