示例#1
0
文件: Form1.cs 项目: Fullonikon/KG
        private void erosionToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Erosion filter      = new Erosion();
            Bitmap  resultImage = filter.processImage(image);

            pictureBox2.Image = resultImage;
            pictureBox2.Refresh();
        }
示例#2
0
文件: Form1.cs 项目: Fullonikon/KG
        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();
        }
示例#3
0
文件: Form1.cs 项目: Fullonikon/KG
        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();
        }