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);
        }
Beispiel #2
0
        private void максимумToolStripMenuItem1_Click(object sender, EventArgs e)
        {
            Filtres filter = new MaxFilter();

            backgroundWorker1.RunWorkerAsync(filter);
        }