示例#1
0
        public override Bitmap proccessImage(Bitmap sourceImage, BackgroundWorker worker)
        {
            MedainFilter  median           = new MedainFilter(1, 1);
            Bitmap        newSourceImage_1 = median.proccessImage(sourceImage, worker);
            EdgeDetection edges            = new EdgeDetection();
            Bitmap        newSourceImage_2 = edges.proccessImage(newSourceImage_1, worker);
            MaximumFilter max         = new MaximumFilter();
            Bitmap        resultImage = max.proccessImage(newSourceImage_2, worker);

            return(resultImage);
        }
示例#2
0
        private void медианныйФильтрToolStripMenuItem_Click_1(object sender, EventArgs e)
        {
            Filters filter = new MedainFilter(1, 1);

            backgroundWorker1.RunWorkerAsync(filter);
        }