Esempio n. 1
0
        public override Bitmap processImage(Bitmap sourceImage, BackgroundWorker worker)
        {
            Bitmap  resultImage = new Bitmap(sourceImage.Width, sourceImage.Height);
            Filters filter1     = new BinaryOperationsBuildup();
            Filters filter2     = new BinaryOperationsErosion();

            resultImage = filter2.processImage(sourceImage);
            resultImage = filter1.processImage(resultImage);
            return(resultImage);
        }
Esempio n. 2
0
        private void эрозияToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Filters filter = new BinaryOperationsErosion();

            backgroundWorker1.RunWorkerAsync(filter);
        }