private void ApplyButton_Click(object sender, EventArgs e) { Canny canny = new Canny(); canny.setCannyInput(imageInput); _homeform.showImage(canny.ApplyCanny((double)numericthreshold.Value, (double)numericthresholdlink.Value)); }
private void whitethreshold_trackbar_Scroll(object sender, EventArgs e) { _white_threshold = whitethreshold_trackbar.Value; whitethreshold_label.Text = "White Threshold :" + _white_threshold.ToString(); _homeform.showImage(sobel.ApplySobel((int)xordernumericUpDown.Value, (int)yordernumericUpDown.Value, (int)apetureSizenumericUpDown.Value, _gray_threshold, _white_threshold)); }