コード例 #1
0
        private void DilatateButton_Click(object sender, EventArgs e)
        {
            var morfForm = new MorphologyForm(_inputImage, Convert.ToInt32(dilatateCoef.Text));

            morfForm.Show();
            morfForm.Dilatate();
        }
コード例 #2
0
        private void closeButton_Click(object sender, EventArgs e)
        {
            var morfForm = new MorphologyForm(_inputImage, 1);

            morfForm.Show();
            morfForm.CloseImage();
        }
コード例 #3
0
        private void ErosionButton_Click(object sender, EventArgs e)
        {
            var morfForm = new MorphologyForm(_inputImage, Convert.ToInt32(eroziumCoef.Text));

            morfForm.Show();
            morfForm.Erosion();
        }