private void delationToolStripMenuItem_Click(object sender, EventArgs e) { Delation filter = new Delation(); Bitmap resultImage = filter.processImage(image); pictureBox2.Image = resultImage; pictureBox2.Refresh(); }
private void openToolStripMenuItem_Click(object sender, EventArgs e) { Erosion filter = new Erosion(); Bitmap resultImage = filter.processImage(image); Delation filter1 = new Delation(); Bitmap resultImage1 = filter1.processImage(resultImage); pictureBox2.Image = resultImage1; pictureBox2.Refresh(); }
private void topHatToolStripMenuItem_Click(object sender, EventArgs e) { Delation filter = new Delation(); Bitmap resultImage = filter.processImage(image); Erosion filter1 = new Erosion(); Bitmap resultImage1 = filter1.processImage(resultImage); Bitmap res = Difference(image, resultImage1); pictureBox2.Image = res; pictureBox2.Refresh(); }