示例#1
0
        public override Bitmap processImage(Bitmap sourceImage, BackgroundWorker worker)
        {
            Filtres medianFilter = new Median();
            Filtres sobel        = new Sobel();
            Filtres maxFilter    = new MaxFilter();
            Bitmap  resultImage  = medianFilter.processImage(sourceImage, worker);

            resultImage = sobel.processImage(resultImage, worker);
            resultImage = maxFilter.processImage(resultImage, worker);
            return(resultImage);
        }
示例#2
0
        private void медианныйToolStripMenuItem1_Click(object sender, EventArgs e)
        {
            Filtres filter = new Median();

            backgroundWorker1.RunWorkerAsync(filter);
        }