Exemple #1
0
        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;
        }
Exemple #2
0
        private void scharrToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Filters filter = new ScharrFilter();

            backgroundWorker1.RunWorkerAsync(filter);
        }