Пример #1
0
        private void размыканиеToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Filter filter1 = new ErosionMask();
            Filter filter2 = new DilationMask();

            //Bitmap resultImage = filter1.processImage(image);
            //backgroundWorker1.RunWorkerAsync(filter2);

            oldMap.Push(image);
            Bitmap result = filter1.processImage(image);

            result            = filter2.processImage(result);
            pictureBox1.Image = result;
            pictureBox1.Refresh();
        }
Пример #2
0
        private void стандартныйЭлементToolStripMenuItem1_Click(object sender, EventArgs e)
        {
            Filter filter = new DilationMask();

            backgroundWorker1.RunWorkerAsync(filter);
        }