public AnalysisOfMethods(double sigma, double bottomThresholdCanny, double upperThresholdCanny, int waveletLength, double bottomThresholdHaar, double upperThresholdHaar, int widthOfBrightnessDiffer, double snr = -1) { InitializeComponent(); this.sigma = sigma; this.bottomThresholdCanny = bottomThresholdCanny; this.upperThresholdCanny = upperThresholdCanny; this.waveletLength = waveletLength; this.bottomThresholdHaar = bottomThresholdHaar; this.upperThresholdHaar = upperThresholdHaar; this.widthOfBrightnessDiffer = widthOfBrightnessDiffer; this.snr = snr; double[] prettCrit = DoTheAnalysis(sigma, bottomThresholdCanny, upperThresholdCanny, waveletLength, bottomThresholdHaar, upperThresholdHaar, widthOfBrightnessDiffer, snr); this.Canny_label.Text = prettCrit[0].ToString(); this.Haar_label.Text = prettCrit[1].ToString(); CannyForm.Show(); HaarForm.Show(); }
private void useCannyMethod_button_Click(object sender, EventArgs e) { CannyForm CannyForm = new CannyForm(filePath, Convert.ToDouble(sigma_textBox.Text), Convert.ToDouble(bottomThreshold_textBox.Text), Convert.ToDouble(upperThreshold_textBox.Text)); //создаем окно для вывода результатов метода Канни, передавая путь к выбранному файлу CannyForm.Show(); }