private void Sobel_Click(object sender, RoutedEventArgs e)
 {
     if (mainControl.OriginalGrayscaleImage != null)
     {
         mainControl.ProcessedGrayscaleImage = AdaptSobel.Sobel(mainControl.OriginalGrayscaleImage, 100);
     }
 }
        private void HoughClick(object sender, RoutedEventArgs e)
        {
            UserInputDialog dlg = new UserInputDialog("Threshold", new string[] { "T=" });

            if (mainControl.OriginalGrayscaleImage != null)
            {
                if (dlg.ShowDialog().Value == true)
                {
                    mainControl.OriginalGrayscaleImage  = AdaptSobel.Sobel(mainControl.OriginalGrayscaleImage, (int)dlg.Values[0]);
                    mainControl.ProcessedGrayscaleImage = Hough.HoughLines_Method(mainControl.OriginalGrayscaleImage, mainControl.OriginalImageCanvas);
                }
            }
        }