private void brightEndToolStripMenuItem_Click(object sender, EventArgs e) { Filters filter1 = new MedianFilter(); Filters filter2 = new ScharrFilter(); Filters filter3 = new MaximumFilter(); Bitmap resultImage = filter1.processImage(Image, backgroundWorker1); resultImage = filter2.processImage(resultImage, backgroundWorker1); resultImage = filter3.processImage(resultImage, backgroundWorker1); pictureBox2.Image = resultImage; pictureBox2.Refresh(); progressBar1.Value = 0; }
private void maximumToolStripMenuItem_Click(object sender, EventArgs e) { Filters filter = new MaximumFilter(); backgroundWorker1.RunWorkerAsync(filter); }