private void gradToolStripMenuItem_Click(object sender, EventArgs e) { //matr = new bool[3, 3] { { false, true, false }, { true, false, true }, { false, true, false } }; pictureBox1.Image = MathMorfology.Gradient(image, matr); pictureBox1.Refresh(); }
private void закрытиеToolStripMenuItem_Click(object sender, EventArgs e) { //matr = new bool[3, 3] { { false, true, false }, { true, false, true }, { false, true, false } }; pictureBox1.Image = MathMorfology.Erosion(MathMorfology.Dilation(image, matr), matr); pictureBox1.Refresh(); }