private void dropListImage1_SelectedIndexChanged(object sender, EventArgs e)
 {
     try
     {
         first = new TypicalImage(images_array[dropListImage1.SelectedIndex]);
         FirstImage.Image = first.get_bitmap();
     }
     catch(Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }
 private void guassianButton_Click(object sender, EventArgs e)
 {
     try
     {
         if (gaussianSize.Text == "")
         {
             bluredimg = img.gaussianFilter2(int.Parse(sigma.Text));
             pictureBoxResult.Image = bluredimg.get_bitmap();
         }
         else
         {
             bluredimg =img.gaussianFilter1(int.Parse(sigma.Text), int.Parse(gaussianSize.Text));
             pictureBoxResult.Image = bluredimg.get_bitmap();
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }
 private void dropListImage2_SelectedIndexChanged(object sender, EventArgs e)
 {
     try
     {
         second = new TypicalImage(images_array[dropListImage2.SelectedIndex]);
         SecondImage.Image = second.get_bitmap();
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }
        private void meanSmooth_Click(object sender, EventArgs e)
        {
            try
            {
                bluredimg = img.meanFilter(
                    int.Parse(meanWidth.Text),
                    int.Parse(meanHeight.Text),
                    int.Parse(meanOrigix.Text),
                    int.Parse(meanOriginy.Text)
                );

                pictureBoxResult.Image = bluredimg.get_bitmap();

            } catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
        }