//public void ApplyCanny(double threshold = 50.0, double thresholdLink = 20.0) //{ // if (_ImageInput == null) // { // return; // } // Image<Gray, byte> imgCanny = new Image<Gray, byte>(_ImageInput.Width, _ImageInput.Height, new Gray(0)); // imgCanny = _ImageInput.Canny(threshold, thresholdLink); // imageBox1.Image = imgCanny; //} private void sobelToolStripMenuItem_Click(object sender, EventArgs e) { Sobel sobel = new Sobel(); sobel.setSobelInput(_ImageInput); imageBox1.Image = sobel.ApplySobel(); }
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)); }