Ejemplo n.º 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);
        }
Ejemplo n.º 2
0
        private void собельToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Filtres filter = new Sobel();

            backgroundWorker1.RunWorkerAsync(filter);
        }