Exemplo n.º 1
0
        private void erosionToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Erosion filter      = new Erosion();
            Bitmap  resultImage = filter.processImage(image);

            pictureBox2.Image = resultImage;
            pictureBox2.Refresh();
        }
Exemplo n.º 2
0
        private void closeToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Delation filter       = new Delation();
            Bitmap   resultImage  = filter.processImage(image);
            Erosion  filter1      = new Erosion();
            Bitmap   resultImage1 = filter1.processImage(resultImage);

            pictureBox2.Image = resultImage1;
            pictureBox2.Refresh();
        }
Exemplo n.º 3
0
        private void blackHatToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Erosion  filter       = new Erosion();
            Bitmap   resultImage  = filter.processImage(image);
            Delation filter1      = new Delation();
            Bitmap   resultImage1 = filter1.processImage(resultImage);
            Bitmap   res          = Difference(resultImage1, image);

            pictureBox2.Image = res;
            pictureBox2.Refresh();
        }