示例#1
0
文件: Form1.cs 项目: hrewhwreh/CompGr
        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;
        }
示例#2
0
文件: Form1.cs 项目: hrewhwreh/CompGr
        private void maximumToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Filters filter = new MaximumFilter();

            backgroundWorker1.RunWorkerAsync(filter);
        }