Ejemplo n.º 1
0
        public override Bitmap processImage(Bitmap sourceImage, BackgroundWorker worker)
        {
            Dilation    dilation    = new Dilation();
            Erosion     erosion     = new Erosion();
            Subtraction subtraction = new Subtraction(dilation.processImage(sourceImage, worker));

            return(subtraction.processImage(erosion.processImage(sourceImage, worker), worker));
        }
Ejemplo n.º 2
0
        public override Bitmap processImage(Bitmap sourceImage, BackgroundWorker worker)
        {
            Dilation dilation;
            Erosion  erosion;

            if (kernel != null)
            {
                dilation = new Dilation(this.kernel);
                erosion  = new Erosion(this.kernel);
            }
            else
            {
                dilation = new Dilation();
                erosion  = new Erosion();
            }
            return(dilation.processImage(erosion.processImage(sourceImage, worker), worker));
        }
Ejemplo n.º 3
0
        private void dilaToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Filters filter = new Dilation();

            backgroundWorker1.RunWorkerAsync(filter);
        }