public override Bitmap processImage(Bitmap sourceImage, BackgroundWorker worker) { Bitmap resultImage = new Bitmap(sourceImage.Width, sourceImage.Height); Filters filter1 = new BinaryOperationsBuildup(); Filters filter2 = new BinaryOperationsErosion(); resultImage = filter2.processImage(sourceImage); resultImage = filter1.processImage(resultImage); return(resultImage); }
private void наращиваниеToolStripMenuItem_Click(object sender, EventArgs e) { Filters filter = new BinaryOperationsBuildup(); backgroundWorker1.RunWorkerAsync(filter); }