Ejemplo n.º 1
0
        public override Bitmap processImage(Bitmap sourceImage, BackgroundWorker worker)
        {
            Bitmap  resultImage = new Bitmap(sourceImage.Width, sourceImage.Height);
            Filters filter1     = new DilationFilter(kernel);

            resultImage = filter1.processImage(sourceImage, worker);
            Filters filter2 = new ErosionFilter(kernel);

            resultImage = filter2.processImage(resultImage, worker);
            return(resultImage);
        }
Ejemplo n.º 2
0
        private void erosionToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Filters filter = new ErosionFilter(kernel);

            backgroundWorker1.RunWorkerAsync(filter);
        }